#include <stdio.h>
#include "iic_function.h"
#include "camera_config.h"
#include "drv_isp.h"
#include "drv_gpio.h"
#include "pin_name.h"
#include "xc7022_drv.h"

#define XC7022_REG_CHIPID_H 0xFFFB
#define XC7022_REG_CHIPID_L 0xFFFC

static i2c_dev_t i2c_xc7022;
extern gpio_pin_handle_t gpio_pin_usi3_sd1_handle;

const  regval_list XC7022_w_page_regs[] = {
{0xfffd, 0x80},
{0xfffe, 0x50},
};

const  regval_list XC7022_w_page1_regs[] = {
{0xfffd, 0x80},
{0xfffe, 0x26},
};

const  regval_list XC7022_read1_regs[] = {
{0x0033, 0x00},
{0x0058, 0x00},
{0x0090, 0x00},
};

const  regval_list XC7022_read2_regs[] = {
{0x8012, 0x00},
{0x8013, 0x00},
{0x8014, 0x00},
{0x8015, 0x00},
};

const  regval_list XC7022_bypass_on[] = {
{0xfffd,0x80},
{0xfffe,0x50},
{0x004d,0x15},
};

const  regval_list XC7022_bypass_off[] = {
{0xfffd,0x80},
{0xfffe,0x50},
{0x004d,0x14},
};

const  regval_list XC7022_stream_on[] = {
{0xfffd,0x80},
{0xfffe,0x26},
{0x8010,0x0d},
};

const  regval_list XC7022_stream_off[] = {
{0xfffd,0x80},
{0xfffe,0x26},
{0x8010,0x09},
};

//rx register
const  regval_list XC7022_debug_page1[] = {
{0xfffe,0x2d},
};

const  regval_list XC7022_debug_page1_reader[] = {
{0xfffe,0x2d},
{0x0003,0x39},
{0x0004,0x04},
{0x0005,0x80},
{0x0006,0x07},
};

const  regval_list XC7022_debug_page2[] = {
{0xfffe,0x30},
};

const  regval_list XC7022_debug_page2_reader[] = {
{0xfffe,0x30},
{0x0028,0x07},
{0x0029,0x80},
{0x002a,0x04},
{0x002b,0x38},
};

//tx register
const  regval_list XC7022_debug_page3[] = {
{0xfffe,0x30},
};

const  regval_list XC7022_debug_page3_reader[] = {
{0xfffe,0x30},
{0x2f06,0x07},
{0x2f07,0x80},
{0x2f08,0x04},
{0x2f09,0x38},
};

const  regval_list XC7022_v2_Init_IQ_regs[] = {
//Initial_start
{0xfffd,0x80},
{0xfffe,0x50},
{0x001c,0xff},
{0x001d,0xff},
{0x001e,0xff},
{0x001f,0xff}, //clk_en
{0x0018,0x00},
{0x0019,0x00},
{0x001a,0x00},
{0x001b,0x00}, //reset

{0x0030,0xa4},
{0x0031,0x91},
{0x0032,0x43},
{0x0033,0x70},

{0x0020,0x02},
{0x0021,0x0d},
{0x0022,0x01},
{0x0023,0x85},
{0x0024,0x03},
{0x0025,0x06},
{0x0026,0x01},
{0x0027,0x06},
{0x0028,0x01},
{0x0029,0x00},
{0x002a,0x01},
{0x002b,0x05},
{0x002e,0x02}, //PLL

{0xfffe,0x50},
{0x0050,0x02},
{0x0054,0x02},
{0x0058,0x02}, //GPIO_Ctr

{0xfffe,0x50},
{0x00bc,0x19},
{0x0090,0x38},

{0x0200,0x0f}, //mipi_rx1_pad
{0x0201,0x00},
{0x0202,0x80},
{0x0203,0x01},

{0xfffe,0x26},
{0x8000,0x1d}, //colorbar
{0x8001,0x80},
{0x8002,0x07},
{0x8003,0x38},
{0x8004,0x04},
{0x8005,0x03},
{0x8006,0x05},
{0x8007,0x99},
{0x8008,0x14},
{0x8009,0x04},

{0xfffe,0x26},
{0x8010,0x05}, //before_isp_crop
{0x8012,0x80},
{0x8013,0x07},
{0x8014,0x38},
{0x8015,0x04},
{0x8016,0x00},
{0x8017,0x00},
{0x8018,0x01},
{0x8019,0x00},

{0xfffe,0x30},
{0x0000,0x01}, //isp0_set
{0x0001,0x10},
{0x0002,0x10},
{0x0003,0x20},
{0x0004,0x10},
{0x0019,0x08},
{0x0050,0x20}, //dummy_line

{0x005e,0x7F},
{0x005f,0x07},
{0x0060,0x37},
{0x0061,0x04},
{0x0064,0x00},
{0x0065,0x05},
{0x0066,0xD0},
{0x0067,0x02},

{0x0006,0x07},
{0x0007,0x80},
{0x0008,0x04},
{0x0009,0x38},
{0x000a,0x05},
{0x000b,0x00},
{0x000c,0x02},
{0x000d,0xD0},

{0x001e,0x07}, //isp_scale
{0x001f,0x80},
{0x0020,0x04},
{0x0021,0x38},

{0x007e,0x05},
{0x007f,0x00},
{0x0080,0x02},
{0x0081,0xD0},
{0x0082,0x01},

{0xfffe,0x30},
{0x1a00,0x00}, //isp_crop
{0x1a01,0x00},
{0x1a02,0x00},
{0x1a03,0x00},
{0x1a04,0x05},
{0x1a05,0x00},
{0x1a06,0x02},
{0x1a07,0xD0},
{0x1a08,0x00},

{0xfffe,0x26},
{0x0000,0x20}, //mipi_rx_lane
{0x0009,0xc4}, //mipi_rx_set

{0xfffe,0x26},
{0x2019,0x05}, //mipi_tx
{0x201a,0x00},
{0x201b,0x02},
{0x201c,0xD0},
{0x201d,0x00},
{0x201e,0x00},
{0x201f,0x00},
{0x2020,0x00},

{0x2015,0x80},
{0x2017,0x1e},
{0x2018,0x00},
{0x2023,0x01}, //mipi_tx_set

{0xfffe,0x2c},
{0x0000,0x00}, //stitch
{0x0008,0x10},

{0x0044,0x08}, //fifo
{0x0045,0x04},
{0x0048,0x09},
{0x0049,0xF0},

{0xfffe,0x2e},
{0x0000,0x00}, //retiming
{0x0001,0xcc},
{0x0002,0x00},
{0x0003,0x01},
{0x0004,0xe0},

{0xfffe,0x30},
{0x006c,0x80}, //pixel_order
{0x1800,0x10},

{0xfffe,0x50},
{0x0226,0x02}, //rx2_off

{0xfffe,0x25},
{0x0002,0xf0}, //i2c_master_speed

{0xfffe,0x2d},
{0x0000,0x88}, //hispi_set
{0x0001,0x88},
{0x0002,0x0c},
{0x0003,0x39},
{0x0004,0x04},
{0x0005,0x80},
{0x0006,0x07},
{0x0007,0x00},
{0x0008,0x0f},
{0x0009,0x10},
{0x000a,0x00},
{0x0013,0xc0},
{0x0014,0x80},
{0x0015,0xe0},
{0x0016,0xa0},
{0x1000,0x88},
{0x1001,0x88},
{0x1002,0x0c},
{0x1003,0x38},
{0x1004,0x04},
{0x1005,0x80},
{0x1006,0x07},
{0x1007,0x10},
{0x1008,0x00},
{0x1009,0x10},
{0x100a,0x00},
{0x1013,0xc0},
{0x1014,0x80},
{0x1015,0xe0},
{0x1016,0xa0},
{0x000b,0x80},
{0x100b,0x80},
{0x000b,0x00},
{0x100b,0x00},

//Initial_end

//patch_start
//以下patch setting需根据实际需求或先前参数添加进来

{0xfffd, 0x80},
{0xfffe, 0x50},
{0x000e, 0x54},
{0xfffe, 0x14},
{0x0006, 0x09},
{0x0007, 0x44},
{0x0014, 0x00},
{0x0015, 0x14},
{0x0016, 0x24},
{0x0017, 0xf4},
{0x2114, 0x9c},
{0x2115, 0x21},
{0x2116, 0xff},
{0x2117, 0xf4},
{0x2118, 0xd4},
{0x2119, 0x01},
{0x211a, 0x48},
{0x211b, 0x00},
{0x211c, 0xd4},
{0x211d, 0x01},
{0x211e, 0x50},
{0x211f, 0x04},
{0x2120, 0xd4},
{0x2121, 0x01},
{0x2122, 0x60},
{0x2123, 0x08},
{0x2124, 0x07},
{0x2125, 0xfb},
{0x2126, 0x07},
{0x2127, 0xa5},
{0x2128, 0x15},
{0x2129, 0x00},
{0x212a, 0x00},
{0x212b, 0x00},
{0x212c, 0x84},
{0x212d, 0x6b},
{0x212e, 0x00},
{0x212f, 0x08},
{0x2130, 0x95},
{0x2131, 0x43},
{0x2132, 0x01},
{0x2133, 0x0e},
{0x2134, 0xbc},
{0x2135, 0x4a},
{0x2136, 0x00},
{0x2137, 0x55},
{0x2138, 0x10},
{0x2139, 0x00},
{0x213a, 0x00},
{0x213b, 0x29},
{0x213c, 0x9c},
{0x213d, 0x60},
{0x213e, 0x31},
{0x213f, 0x00},
{0x2140, 0x9c},
{0x2141, 0x80},
{0x2142, 0x00},
{0x2143, 0x00},
{0x2144, 0x07},
{0x2145, 0xfb},
{0x2146, 0x17},
{0x2147, 0x71},
{0x2148, 0x9c},
{0x2149, 0xa0},
{0x214a, 0x00},
{0x214b, 0x02},
{0x214c, 0xbc},
{0x214d, 0x4a},
{0x214e, 0x00},
{0x214f, 0x3c},
{0x2150, 0x10},
{0x2151, 0x00},
{0x2152, 0x00},
{0x2153, 0x5b},
{0x2154, 0xbc},
{0x2155, 0x4a},
{0x2156, 0x00},
{0x2157, 0x3f},
{0x2158, 0xa8},
{0x2159, 0x8a},
{0x215a, 0x00},
{0x215b, 0x00},
{0x215c, 0x9c},
{0x215d, 0x60},
{0x215e, 0x04},
{0x215f, 0x00},
{0x2160, 0x9d},
{0x2161, 0x80},
{0x2162, 0x00},
{0x2163, 0x00},
{0x2164, 0x07},
{0x2165, 0xfb},
{0x2166, 0x78},
{0x2167, 0x21},
{0x2168, 0x15},
{0x2169, 0x00},
{0x216a, 0x00},
{0x216b, 0x00},
{0x216c, 0x9c},
{0x216d, 0x60},
{0x216e, 0x00},
{0x216f, 0x20},
{0x2170, 0xe0},
{0x2171, 0x63},
{0x2172, 0x58},
{0x2173, 0x02},
{0x2174, 0xa5},
{0x2175, 0x43},
{0x2176, 0xff},
{0x2177, 0xff},
{0x2178, 0x18},
{0x2179, 0x60},
{0x217a, 0x00},
{0x217b, 0x14},
{0x217c, 0xa8},
{0x217d, 0x63},
{0x217e, 0x5d},
{0x217f, 0x00},
{0x2180, 0x8c},
{0x2181, 0x63},
{0x2182, 0x00},
{0x2183, 0x00},
{0x2184, 0xbc},
{0x2185, 0x03},
{0x2186, 0x00},
{0x2187, 0x00},
{0x2188, 0x10},
{0x2189, 0x00},
{0x218a, 0x00},
{0x218b, 0x5b},
{0x218c, 0x15},
{0x218d, 0x00},
{0x218e, 0x00},
{0x218f, 0x00},
{0x2190, 0x9c},
{0x2191, 0x60},
{0x2192, 0x30},
{0x2193, 0x96},
{0x2194, 0x9c},
{0x2195, 0x80},
{0x2196, 0x04},
{0x2197, 0x80},
{0x2198, 0x07},
{0x2199, 0xfb},
{0x219a, 0x17},
{0x219b, 0x5c},
{0x219c, 0x9c},
{0x219d, 0xa0},
{0x219e, 0x00},
{0x219f, 0x02},
{0x21a0, 0x9c},
{0x21a1, 0x60},
{0x21a2, 0x30},
{0x21a3, 0x98},
{0x21a4, 0x9c},
{0x21a5, 0x80},
{0x21a6, 0x04},
{0x21a7, 0x80},
{0x21a8, 0x07},
{0x21a9, 0xfb},
{0x21aa, 0x17},
{0x21ab, 0x58},
{0x21ac, 0x9c},
{0x21ad, 0xa0},
{0x21ae, 0x00},
{0x21af, 0x02},
{0x21b0, 0x9c},
{0x21b1, 0x60},
{0x21b2, 0x32},
{0x21b3, 0x02},
{0x21b4, 0x9c},
{0x21b5, 0x80},
{0x21b6, 0x00},
{0x21b7, 0x80},
{0x21b8, 0x07},
{0x21b9, 0xfb},
{0x21ba, 0x17},
{0x21bb, 0x54},
{0x21bc, 0x9c},
{0x21bd, 0xa0},
{0x21be, 0x00},
{0x21bf, 0x02},
{0x21c0, 0x9c},
{0x21c1, 0x60},
{0x21c2, 0x32},
{0x21c3, 0x06},
{0x21c4, 0x9c},
{0x21c5, 0x80},
{0x21c6, 0x0b},
{0x21c7, 0x08},
{0x21c8, 0x07},
{0x21c9, 0xfb},
{0x21ca, 0x17},
{0x21cb, 0x50},
{0x21cc, 0x9c},
{0x21cd, 0xa0},
{0x21ce, 0x00},
{0x21cf, 0x02},
{0x21d0, 0x9c},
{0x21d1, 0x60},
{0x21d2, 0x32},
{0x21d3, 0x08},
{0x21d4, 0x00},
{0x21d5, 0x00},
{0x21d6, 0x00},
{0x21d7, 0x59},
{0x21d8, 0x9c},
{0x21d9, 0x80},
{0x21da, 0x1e},
{0x21db, 0x13},
{0x21dc, 0x9c},
{0x21dd, 0x80},
{0x21de, 0x00},
{0x21df, 0x04},
{0x21e0, 0x07},
{0x21e1, 0xfb},
{0x21e2, 0x17},
{0x21e3, 0x4a},
{0x21e4, 0x9c},
{0x21e5, 0xa0},
{0x21e6, 0x00},
{0x21e7, 0x02},
{0x21e8, 0xb8},
{0x21e9, 0x6a},
{0x21ea, 0x00},
{0x21eb, 0x05},
{0x21ec, 0x07},
{0x21ed, 0xfb},
{0x21ee, 0x77},
{0x21ef, 0xff},
{0x21f0, 0x9c},
{0x21f1, 0x80},
{0x21f2, 0x00},
{0x21f3, 0x56},
{0x21f4, 0xa5},
{0x21f5, 0x4b},
{0x21f6, 0xff},
{0x21f7, 0xff},
{0x21f8, 0xbc},
{0x21f9, 0xaa},
{0x21fa, 0x00},
{0x21fb, 0xff},
{0x21fc, 0x10},
{0x21fd, 0x00},
{0x21fe, 0x00},
{0x21ff, 0x28},
{0x2200, 0xbc},
{0x2201, 0xaa},
{0x2202, 0x00},
{0x2203, 0x7f},
{0x2204, 0xa8},
{0x2205, 0x8a},
{0x2206, 0x00},
{0x2207, 0x00},
{0x2208, 0x9c},
{0x2209, 0x60},
{0x220a, 0x20},
{0x220b, 0x00},
{0x220c, 0x9d},
{0x220d, 0x80},
{0x220e, 0x00},
{0x220f, 0x03},
{0x2210, 0x07},
{0x2211, 0xfb},
{0x2212, 0x77},
{0x2213, 0xf6},
{0x2214, 0x15},
{0x2215, 0x00},
{0x2216, 0x00},
{0x2217, 0x00},
{0x2218, 0x9c},
{0x2219, 0x60},
{0x221a, 0x00},
{0x221b, 0x20},
{0x221c, 0xe0},
{0x221d, 0x63},
{0x221e, 0x58},
{0x221f, 0x02},
{0x2220, 0xa5},
{0x2221, 0x43},
{0x2222, 0xff},
{0x2223, 0xff},
{0x2224, 0xbc},
{0x2225, 0xaa},
{0x2226, 0x00},
{0x2227, 0x0f},
{0x2228, 0x10},
{0x2229, 0x00},
{0x222a, 0x00},
{0x222b, 0x04},
{0x222c, 0x9c},
{0x222d, 0x6c},
{0x222e, 0x00},
{0x222f, 0x01},
{0x2230, 0x9d},
{0x2231, 0x40},
{0x2232, 0x00},
{0x2233, 0x00},
{0x2234, 0xa5},
{0x2235, 0x83},
{0x2236, 0xff},
{0x2237, 0xff},
{0x2238, 0x18},
{0x2239, 0x60},
{0x223a, 0x00},
{0x223b, 0x14},
{0x223c, 0xa8},
{0x223d, 0x63},
{0x223e, 0x5d},
{0x223f, 0x00},
{0x2240, 0x8c},
{0x2241, 0x63},
{0x2242, 0x00},
{0x2243, 0x00},
{0x2244, 0xbc},
{0x2245, 0x03},
{0x2246, 0x00},
{0x2247, 0x00},
{0x2248, 0x10},
{0x2249, 0x00},
{0x224a, 0x00},
{0x224b, 0x24},
{0x224c, 0x15},
{0x224d, 0x00},
{0x224e, 0x00},
{0x224f, 0x00},
{0x2250, 0x9c},
{0x2251, 0x60},
{0x2252, 0x30},
{0x2253, 0x96},
{0x2254, 0x9c},
{0x2255, 0x80},
{0x2256, 0x07},
{0x2257, 0x80},
{0x2258, 0x07},
{0x2259, 0xfb},
{0x225a, 0x17},
{0x225b, 0x2c},
{0x225c, 0x9c},
{0x225d, 0xa0},
{0x225e, 0x00},
{0x225f, 0x02},
{0x2260, 0x9c},
{0x2261, 0x60},
{0x2262, 0x30},
{0x2263, 0x98},
{0x2264, 0x9c},
{0x2265, 0x80},
{0x2266, 0x07},
{0x2267, 0x80},
{0x2268, 0x07},
{0x2269, 0xfb},
{0x226a, 0x17},
{0x226b, 0x28},
{0x226c, 0x9c},
{0x226d, 0xa0},
{0x226e, 0x00},
{0x226f, 0x02},
{0x2270, 0x9c},
{0x2271, 0x60},
{0x2272, 0x32},
{0x2273, 0x02},
{0x2274, 0x9c},
{0x2275, 0x80},
{0x2276, 0x00},
{0x2277, 0xb0},
{0x2278, 0x07},
{0x2279, 0xfb},
{0x227a, 0x17},
{0x227b, 0x24},
{0x227c, 0x9c},
{0x227d, 0xa0},
{0x227e, 0x00},
{0x227f, 0x02},
{0x2280, 0x9c},
{0x2281, 0x60},
{0x2282, 0x32},
{0x2283, 0x06},
{0x2284, 0x9c},
{0x2285, 0x80},
{0x2286, 0x1c},
{0x2287, 0x0e},
{0x2288, 0x07},
{0x2289, 0xfb},
{0x228a, 0x17},
{0x228b, 0x20},
{0x228c, 0x9c},
{0x228d, 0xa0},
{0x228e, 0x00},
{0x228f, 0x02},
{0x2290, 0x9c},
{0x2291, 0x60},
{0x2292, 0x32},
{0x2293, 0x08},
{0x2294, 0x00},
{0x2295, 0x00},
{0x2296, 0x00},
{0x2297, 0x29},
{0x2298, 0x9c},
{0x2299, 0x80},
{0x229a, 0x4e},
{0x229b, 0x39},
{0x229c, 0x0c},
{0x229d, 0x00},
{0x229e, 0x00},
{0x229f, 0x1f},
{0x22a0, 0xa8},
{0x22a1, 0x8a},
{0x22a2, 0x00},
{0x22a3, 0x00},
{0x22a4, 0xbc},
{0x22a5, 0xaa},
{0x22a6, 0x00},
{0x22a7, 0x3f},
{0x22a8, 0x10},
{0x22a9, 0x00},
{0x22aa, 0x00},
{0x22ab, 0x21},
{0x22ac, 0x15},
{0x22ad, 0x00},
{0x22ae, 0x00},
{0x22af, 0x00},
{0x22b0, 0x9c},
{0x22b1, 0x60},
{0x22b2, 0x08},
{0x22b3, 0x00},
{0x22b4, 0x03},
{0x22b5, 0xff},
{0x22b6, 0xff},
{0x22b7, 0xd7},
{0x22b8, 0x9d},
{0x22b9, 0x80},
{0x22ba, 0x00},
{0x22bb, 0x01},
{0x22bc, 0x0c},
{0x22bd, 0x00},
{0x22be, 0x00},
{0x22bf, 0x15},
{0x22c0, 0x9d},
{0x22c1, 0x80},
{0x22c2, 0x00},
{0x22c3, 0x01},
{0x22c4, 0xbc},
{0x22c5, 0x4a},
{0x22c6, 0x00},
{0x22c7, 0x51},
{0x22c8, 0x10},
{0x22c9, 0x00},
{0x22ca, 0x00},
{0x22cb, 0x17},
{0x22cc, 0xa8},
{0x22cd, 0x8a},
{0x22ce, 0x00},
{0x22cf, 0x00},
{0x22d0, 0x03},
{0x22d1, 0xff},
{0x22d2, 0xff},
{0x22d3, 0xa5},
{0x22d4, 0x9c},
{0x22d5, 0x60},
{0x22d6, 0x08},
{0x22d7, 0x00},
{0x22d8, 0x9c},
{0x22d9, 0x60},
{0x22da, 0x30},
{0x22db, 0x96},
{0x22dc, 0x9c},
{0x22dd, 0x80},
{0x22de, 0x00},
{0x22df, 0x80},
{0x22e0, 0x07},
{0x22e1, 0xfb},
{0x22e2, 0x17},
{0x22e3, 0x0a},
{0x22e4, 0x9c},
{0x22e5, 0xa0},
{0x22e6, 0x00},
{0x22e7, 0x02},
{0x22e8, 0x9c},
{0x22e9, 0x60},
{0x22ea, 0x30},
{0x22eb, 0x98},
{0x22ec, 0x03},
{0x22ed, 0xff},
{0x22ee, 0xff},
{0x22ef, 0xdf},
{0x22f0, 0x9c},
{0x22f1, 0x80},
{0x22f2, 0x00},
{0x22f3, 0x80},
{0x22f4, 0x9c},
{0x22f5, 0x60},
{0x22f6, 0x30},
{0x22f7, 0x96},
{0x22f8, 0x9c},
{0x22f9, 0x80},
{0x22fa, 0x00},
{0x22fb, 0x80},
{0x22fc, 0x07},
{0x22fd, 0xfb},
{0x22fe, 0x17},
{0x22ff, 0x03},
{0x2300, 0x9c},
{0x2301, 0xa0},
{0x2302, 0x00},
{0x2303, 0x02},
{0x2304, 0x9c},
{0x2305, 0x60},
{0x2306, 0x30},
{0x2307, 0x98},
{0x2308, 0x03},
{0x2309, 0xff},
{0x230a, 0xff},
{0x230b, 0xa8},
{0x230c, 0x9c},
{0x230d, 0x80},
{0x230e, 0x00},
{0x230f, 0x80},
{0x2310, 0x03},
{0x2311, 0xff},
{0x2312, 0xff},
{0x2313, 0x9a},
{0x2314, 0x9d},
{0x2315, 0x40},
{0x2316, 0x00},
{0x2317, 0x00},
{0x2318, 0x9c},
{0x2319, 0x60},
{0x231a, 0x10},
{0x231b, 0x00},
{0x231c, 0x03},
{0x231d, 0xff},
{0x231e, 0xff},
{0x231f, 0xbd},
{0x2320, 0x9d},
{0x2321, 0x80},
{0x2322, 0x00},
{0x2323, 0x02},
{0x2324, 0x03},
{0x2325, 0xff},
{0x2326, 0xff},
{0x2327, 0x95},
{0x2328, 0x9d},
{0x2329, 0x40},
{0x232a, 0x00},
{0x232b, 0x07},
{0x232c, 0x9c},
{0x232d, 0x60},
{0x232e, 0x04},
{0x232f, 0x00},
{0x2330, 0x03},
{0x2331, 0xff},
{0x2332, 0xff},
{0x2333, 0xb8},
{0x2334, 0x9d},
{0x2335, 0x80},
{0x2336, 0x00},
{0x2337, 0x00},
{0x2338, 0x07},
{0x2339, 0xfb},
{0x233a, 0x16},
{0x233b, 0xf4},
{0x233c, 0x9c},
{0x233d, 0xa0},
{0x233e, 0x00},
{0x233f, 0x02},
{0x2340, 0xb8},
{0x2341, 0x8c},
{0x2342, 0x00},
{0x2343, 0x04},
{0x2344, 0xa4},
{0x2345, 0xca},
{0x2346, 0x00},
{0x2347, 0x0f},
{0x2348, 0x9c},
{0x2349, 0x60},
{0x234a, 0x30},
{0x234b, 0x60},
{0x234c, 0xa4},
{0x234d, 0x84},
{0x234e, 0x00},
{0x234f, 0x70},
{0x2350, 0x9c},
{0x2351, 0xa0},
{0x2352, 0x00},
{0x2353, 0x02},
{0x2354, 0x07},
{0x2355, 0xfb},
{0x2356, 0x16},
{0x2357, 0xed},
{0x2358, 0xe0},
{0x2359, 0x84},
{0x235a, 0x30},
{0x235b, 0x00},
{0x235c, 0x85},
{0x235d, 0x21},
{0x235e, 0x00},
{0x235f, 0x00},
{0x2360, 0x85},
{0x2361, 0x41},
{0x2362, 0x00},
{0x2363, 0x04},
{0x2364, 0x85},
{0x2365, 0x81},
{0x2366, 0x00},
{0x2367, 0x08},
{0x2368, 0x44},
{0x2369, 0x00},
{0x236a, 0x48},
{0x236b, 0x00},
{0x236c, 0x9c},
{0x236d, 0x21},
{0x236e, 0x00},
{0x236f, 0x0c},
{0x2370, 0x9c},
{0x2371, 0x21},
{0x2372, 0xff},
{0x2373, 0xf8},
{0x2374, 0xd4},
{0x2375, 0x01},
{0x2376, 0x48},
{0x2377, 0x00},
{0x2378, 0xd4},
{0x2379, 0x01},
{0x237a, 0x50},
{0x237b, 0x04},
{0x237c, 0x07},
{0x237d, 0xfb},
{0x237e, 0x07},
{0x237f, 0x0f},
{0x2380, 0x15},
{0x2381, 0x00},
{0x2382, 0x00},
{0x2383, 0x00},
{0x2384, 0x85},
{0x2385, 0x4b},
{0x2386, 0x00},
{0x2387, 0x08},
{0x2388, 0x18},
{0x2389, 0xa0},
{0x238a, 0x00},
{0x238b, 0x14},
{0x238c, 0xa8},
{0x238d, 0xa5},
{0x238e, 0x5d},
{0x238f, 0x08},
{0x2390, 0x84},
{0x2391, 0x6a},
{0x2392, 0x01},
{0x2393, 0x08},
{0x2394, 0x84},
{0x2395, 0x8a},
{0x2396, 0x01},
{0x2397, 0x0c},
{0x2398, 0xb8},
{0x2399, 0xc3},
{0x239a, 0x00},
{0x239b, 0x44},
{0x239c, 0xb8},
{0x239d, 0x84},
{0x239e, 0x00},
{0x239f, 0x41},
{0x23a0, 0x84},
{0x23a1, 0xa5},
{0x23a2, 0x00},
{0x23a3, 0x00},
{0x23a4, 0x94},
{0x23a5, 0x6a},
{0x23a6, 0x01},
{0x23a7, 0x00},
{0x23a8, 0xe0},
{0x23a9, 0x84},
{0x23aa, 0x33},
{0x23ab, 0x06},
{0x23ac, 0x07},
{0x23ad, 0xfb},
{0x23ae, 0x77},
{0x23af, 0xa8},
{0x23b0, 0xe0},
{0x23b1, 0x63},
{0x23b2, 0x2b},
{0x23b3, 0x06},
{0x23b4, 0x18},
{0x23b5, 0x60},
{0x23b6, 0x00},
{0x23b7, 0x14},
{0x23b8, 0xa8},
{0x23b9, 0x63},
{0x23ba, 0x5d},
{0x23bb, 0x04},
{0x23bc, 0xd4},
{0x23bd, 0x03},
{0x23be, 0x58},
{0x23bf, 0x00},
{0x23c0, 0x18},
{0x23c1, 0x60},
{0x23c2, 0x00},
{0x23c3, 0x14},
{0x23c4, 0xa8},
{0x23c5, 0x63},
{0x23c6, 0x5d},
{0x23c7, 0x0c},
{0x23c8, 0x94},
{0x23c9, 0x63},
{0x23ca, 0x00},
{0x23cb, 0x00},
{0x23cc, 0xe4},
{0x23cd, 0xa3},
{0x23ce, 0x58},
{0x23cf, 0x00},
{0x23d0, 0x10},
{0x23d1, 0x00},
{0x23d2, 0x00},
{0x23d3, 0x05},
{0x23d4, 0x15},
{0x23d5, 0x00},
{0x23d6, 0x00},
{0x23d7, 0x00},
{0x23d8, 0x94},
{0x23d9, 0x6a},
{0x23da, 0x00},
{0x23db, 0x66},
{0x23dc, 0x00},
{0x23dd, 0x00},
{0x23de, 0x00},
{0x23df, 0x2a},
{0x23e0, 0xdc},
{0x23e1, 0x0a},
{0x23e2, 0x18},
{0x23e3, 0x54},
{0x23e4, 0x18},
{0x23e5, 0x60},
{0x23e6, 0x00},
{0x23e7, 0x14},
{0x23e8, 0xa8},
{0x23e9, 0x63},
{0x23ea, 0x5d},
{0x23eb, 0x0e},
{0x23ec, 0x94},
{0x23ed, 0x63},
{0x23ee, 0x00},
{0x23ef, 0x00},
{0x23f0, 0xe4},
{0x23f1, 0xa3},
{0x23f2, 0x58},
{0x23f3, 0x00},
{0x23f4, 0x10},
{0x23f5, 0x00},
{0x23f6, 0x00},
{0x23f7, 0x04},
{0x23f8, 0x15},
{0x23f9, 0x00},
{0x23fa, 0x00},
{0x23fb, 0x00},
{0x23fc, 0x03},
{0x23fd, 0xff},
{0x23fe, 0xff},
{0x23ff, 0xf8},
{0x2400, 0x94},
{0x2401, 0x6a},
{0x2402, 0x00},
{0x2403, 0x68},
{0x2404, 0x18},
{0x2405, 0x60},
{0x2406, 0x00},
{0x2407, 0x14},
{0x2408, 0xa8},
{0x2409, 0x63},
{0x240a, 0x5d},
{0x240b, 0x10},
{0x240c, 0x94},
{0x240d, 0x63},
{0x240e, 0x00},
{0x240f, 0x00},
{0x2410, 0xe4},
{0x2411, 0xa3},
{0x2412, 0x58},
{0x2413, 0x00},
{0x2414, 0x0c},
{0x2415, 0x00},
{0x2416, 0x00},
{0x2417, 0x0a},
{0x2418, 0x15},
{0x2419, 0x00},
{0x241a, 0x00},
{0x241b, 0x00},
{0x241c, 0x18},
{0x241d, 0x60},
{0x241e, 0x00},
{0x241f, 0x14},
{0x2420, 0xa8},
{0x2421, 0x63},
{0x2422, 0x5d},
{0x2423, 0x12},
{0x2424, 0x94},
{0x2425, 0x63},
{0x2426, 0x00},
{0x2427, 0x00},
{0x2428, 0xe4},
{0x2429, 0xa3},
{0x242a, 0x58},
{0x242b, 0x00},
{0x242c, 0x10},
{0x242d, 0x00},
{0x242e, 0x00},
{0x242f, 0x06},
{0x2430, 0x15},
{0x2431, 0x00},
{0x2432, 0x00},
{0x2433, 0x00},
{0x2434, 0x03},
{0x2435, 0xff},
{0x2436, 0xff},
{0x2437, 0xea},
{0x2438, 0x94},
{0x2439, 0x6a},
{0x243a, 0x00},
{0x243b, 0x6c},
{0x243c, 0x03},
{0x243d, 0xff},
{0x243e, 0xff},
{0x243f, 0xe8},
{0x2440, 0x94},
{0x2441, 0x6a},
{0x2442, 0x00},
{0x2443, 0x6a},
{0x2444, 0x18},
{0x2445, 0x60},
{0x2446, 0x00},
{0x2447, 0x14},
{0x2448, 0xa8},
{0x2449, 0x63},
{0x244a, 0x5d},
{0x244b, 0x14},
{0x244c, 0x94},
{0x244d, 0x63},
{0x244e, 0x00},
{0x244f, 0x00},
{0x2450, 0xe4},
{0x2451, 0xa3},
{0x2452, 0x58},
{0x2453, 0x00},
{0x2454, 0x0c},
{0x2455, 0x00},
{0x2456, 0x00},
{0x2457, 0x0a},
{0x2458, 0x15},
{0x2459, 0x00},
{0x245a, 0x00},
{0x245b, 0x00},
{0x245c, 0x18},
{0x245d, 0x60},
{0x245e, 0x00},
{0x245f, 0x14},
{0x2460, 0xa8},
{0x2461, 0x63},
{0x2462, 0x5d},
{0x2463, 0x16},
{0x2464, 0x94},
{0x2465, 0x63},
{0x2466, 0x00},
{0x2467, 0x00},
{0x2468, 0xe4},
{0x2469, 0xa3},
{0x246a, 0x58},
{0x246b, 0x00},
{0x246c, 0x10},
{0x246d, 0x00},
{0x246e, 0x00},
{0x246f, 0x06},
{0x2470, 0x15},
{0x2471, 0x00},
{0x2472, 0x00},
{0x2473, 0x00},
{0x2474, 0x03},
{0x2475, 0xff},
{0x2476, 0xff},
{0x2477, 0xda},
{0x2478, 0x94},
{0x2479, 0x6a},
{0x247a, 0x00},
{0x247b, 0x70},
{0x247c, 0x03},
{0x247d, 0xff},
{0x247e, 0xff},
{0x247f, 0xd8},
{0x2480, 0x94},
{0x2481, 0x6a},
{0x2482, 0x00},
{0x2483, 0x6e},
{0x2484, 0x85},
{0x2485, 0x21},
{0x2486, 0x00},
{0x2487, 0x00},
{0x2488, 0x85},
{0x2489, 0x41},
{0x248a, 0x00},
{0x248b, 0x04},
{0x248c, 0x44},
{0x248d, 0x00},
{0x248e, 0x48},
{0x248f, 0x00},
{0x2490, 0x9c},
{0x2491, 0x21},
{0x2492, 0x00},
{0x2493, 0x08},
{0x2494, 0x9c},
{0x2495, 0x21},
{0x2496, 0xff},
{0x2497, 0xfc},
{0x2498, 0xd4},
{0x2499, 0x01},
{0x249a, 0x48},
{0x249b, 0x00},
{0x249c, 0xbc},
{0x249d, 0x03},
{0x249e, 0x01},
{0x249f, 0x03},
{0x24a0, 0x10},
{0x24a1, 0x00},
{0x24a2, 0x00},
{0x24a3, 0x06},
{0x24a4, 0xbc},
{0x24a5, 0x03},
{0x24a6, 0x04},
{0x24a7, 0x0c},
{0x24a8, 0x0c},
{0x24a9, 0x00},
{0x24aa, 0x00},
{0x24ab, 0x10},
{0x24ac, 0x15},
{0x24ad, 0x00},
{0x24ae, 0x00},
{0x24af, 0x00},
{0x24b0, 0x00},
{0x24b1, 0x00},
{0x24b2, 0x00},
{0x24b3, 0x0c},
{0x24b4, 0x15},
{0x24b5, 0x00},
{0x24b6, 0x00},
{0x24b7, 0x00},
{0x24b8, 0x18},
{0x24b9, 0x60},
{0x24ba, 0x00},
{0x24bb, 0x14},
{0x24bc, 0xa8},
{0x24bd, 0x63},
{0x24be, 0x5d},
{0x24bf, 0x01},
{0x24c0, 0x8c},
{0x24c1, 0x63},
{0x24c2, 0x00},
{0x24c3, 0x00},
{0x24c4, 0xbc},
{0x24c5, 0x23},
{0x24c6, 0x00},
{0x24c7, 0x01},
{0x24c8, 0x10},
{0x24c9, 0x00},
{0x24ca, 0x00},
{0x24cb, 0x08},
{0x24cc, 0x15},
{0x24cd, 0x00},
{0x24ce, 0x00},
{0x24cf, 0x00},
{0x24d0, 0x07},
{0x24d1, 0xff},
{0x24d2, 0xff},
{0x24d3, 0xa8},
{0x24d4, 0x15},
{0x24d5, 0x00},
{0x24d6, 0x00},
{0x24d7, 0x00},
{0x24d8, 0x00},
{0x24d9, 0x00},
{0x24da, 0x00},
{0x24db, 0x04},
{0x24dc, 0x15},
{0x24dd, 0x00},
{0x24de, 0x00},
{0x24df, 0x00},
{0x24e0, 0x07},
{0x24e1, 0xff},
{0x24e2, 0xff},
{0x24e3, 0x0d},
{0x24e4, 0x15},
{0x24e5, 0x00},
{0x24e6, 0x00},
{0x24e7, 0x00},
{0x24e8, 0x85},
{0x24e9, 0x21},
{0x24ea, 0x00},
{0x24eb, 0x00},
{0x24ec, 0x44},
{0x24ed, 0x00},
{0x24ee, 0x48},
{0x24ef, 0x00},
{0x24f0, 0x9c},
{0x24f1, 0x21},
{0x24f2, 0x00},
{0x24f3, 0x04},
{0x24f4, 0x9c},
{0x24f5, 0x21},
{0x24f6, 0xff},
{0x24f7, 0xfc},
{0x24f8, 0xd4},
{0x24f9, 0x01},
{0x24fa, 0x48},
{0x24fb, 0x00},
{0x24fc, 0x07},
{0x24fd, 0xff},
{0x24fe, 0xff},
{0x24ff, 0xe6},
{0x2500, 0x15},
{0x2501, 0x00},
{0x2502, 0x00},
{0x2503, 0x00},
{0x2504, 0x9d},
{0x2505, 0x60},
{0x2506, 0x00},
{0x2507, 0x00},
{0x2508, 0x85},
{0x2509, 0x21},
{0x250a, 0x00},
{0x250b, 0x00},
{0x250c, 0x44},
{0x250d, 0x00},
{0x250e, 0x48},
{0x250f, 0x00},
{0x2510, 0x9c},
{0x2511, 0x21},
{0x2512, 0x00},
{0x2513, 0x04},
{0x2514, 0x00},
{0x2515, 0x00},
{0x2516, 0x00},
{0x2517, 0x00},
{0x2518, 0x00},
{0x2519, 0x00},
{0x251a, 0x00},
{0x251b, 0x00},
{0x251c, 0x00},
{0x251d, 0x00},
{0x251e, 0x00},
{0x251f, 0x00},
{0x2520, 0x00},
{0x2521, 0x00},
{0x2522, 0x00},
{0x2523, 0x00},
{0x2524, 0x00},
{0x2525, 0x00},
{0x2526, 0x00},
{0x2527, 0x00},
{0x2528, 0x00},
{0x2529, 0x00},
{0x252a, 0x00},
{0x252b, 0x00},

{0xfffe,0x14},
{0x5d00,0x01},
{0x5d01,0x01},
{0x5d08,0x00},
{0x5d09,0x00},
{0x5d0a,0x27},
{0x5d0b,0x10},

{0x5d0c,0x02}, //室内 0-32 对应 b2 b3
{0x5d0d,0x00},

{0x5d0e,0x04}, //室内 2-4 对应 b4 b5
{0x5d0f,0x00},

{0x5d10,0x08}, //逆光 4-7 对应 b6 b7
{0x5d11,0x00},

{0x5d12,0x20}, //室外+逆光 8-20 对应 b8 b9
{0x5d13,0x00},

{0x5d14,0xc0}, //室外 20-c0 对应 ba bb
{0x5d15,0x00},

{0x5d16,0xff},
{0x5d17,0x00}, //室外大太阳逆光 c0-ff 对应 bc bd

{0xfffe,0x50},
{0x0137,0x99},

//patch_end

//IQ_start
//AE
{0xfffe,0x30},
{0x1f00,0x00},
{0x1f01,0x00}, //win_Xstart
{0x1f02,0x00},
{0x1f03,0x00}, //win_Ystart
{0x1f04,0x07},
{0x1f05,0x80}, //win_width
{0x1f06,0x04},
{0x1f07,0x38}, //win_height
{0x1f08,0x03},
{0x0051,0x01},

{0xfffe,0x14},
{0x000e,0x00}, //isp0_used_i2c
{0x010e,0x20}, //sensor_i2c_id
{0x010f,0x01}, //sensor_i2c_bits
{0x0110,0x05}, //type_gain
{0x0111,0x02}, //type_exp

{0x0114,0x30}, //exp_addr
{0x0115,0x12},
{0x0116,0x30},
{0x0117,0x13},
{0x0118,0x00},
{0x0119,0x00},
{0x011a,0x00},
{0x011b,0x00},

{0x011c,0xff}, //exp_mask
{0x011d,0xff},
{0x011e,0xff},
{0x011f,0xff},
{0x0120,0x00},
{0x0121,0x00},
{0x0122,0x00},
{0x0123,0x00},

{0x0134,0x00}, //gain_addr
{0x0135,0x00},
{0x0136,0x30},
{0x0137,0x61},
{0x0138,0x00},
{0x0139,0x00},
{0x013a,0x00},
{0x013b,0x00},

{0x013c,0x00}, //gain_mask
{0x013d,0x00},
{0x013e,0xff},
{0x013f,0xff},
{0x0140,0x00},
{0x0141,0x00},
{0x0142,0x00},
{0x0143,0x00},

//Area Weight
{0xfffe,0x14},
{0x0055,0x10},
{0x0056,0x10},
{0x0057,0x10},
{0x0058,0x10},
{0x0059,0x10},

{0x005a,0x10},
{0x005b,0x10},
{0x005c,0x10},
{0x005d,0x10},
{0x005e,0x10},

{0x005f,0x10},
{0x0060,0x10},
{0x0061,0x10},
{0x0062,0x10},
{0x0063,0x10},

{0x0064,0x10},
{0x0065,0x10},
{0x0066,0x10},
{0x0067,0x10},
{0x0068,0x10},

{0x0069,0x10},
{0x006a,0x10},
{0x006b,0x10},
{0x006c,0x10},
{0x006d,0x10},

//Attention
{0x0088,0x00},
{0x0089,0x07},
{0x008a,0x39},
{0x008b,0xc0},
{0x0050,0x01}, //refresh

//AE base
{0xfffe,0x14},
{0x004c,0x00}, //AEC_mode
{0x004d,0x01}, //AE_force_write

{0x00a0,0x01},
{0x00a1,0xb0}, //day_target

{0x00de,0x00},
{0x00df,0x10}, //min_exp
{0x00e0,0x00},
{0x00e1,0x00},
{0x00e2,0x40},
{0x00e3,0x00}, //max_exp
{0x00fa,0x00},
{0x00fb,0x80}, //max_gain
{0x00fc,0x00},
{0x00fd,0x20}, //min_gain

{0x0104,0x00}, //flicker
{0x0105,0x01}, //min_flickerlines_en
{0x0106,0x11},
{0x0107,0xb0}, //60Hz
{0x0108,0x15},
{0x0109,0x30}, //50Hz

//AE speed
{0x00c6,0x01}, //delay_frame
{0x0144,0x00}, //exp_delay
{0x0145,0x00}, //gain_delay
{0x0031,0x01}, //exp_mode
{0x0032,0x01}, //gain_mode

{0x00c7,0x28}, //finally_thr
{0x00ca,0x00},
{0x00cb,0x60}, //thr_low
{0x00cc,0x00},
{0x00cd,0xa0}, //thr_high
{0x00ce,0x00},
{0x00cf,0x60}, //jump_thr
{0x00d4,0x00},
{0x00d5,0x80}, //jump_mutiple
{0x00d6,0x00},
{0x00d7,0x80}, //max_jump_ratio
{0x00d9,0x00}, //max_jump_cnt
{0x00da,0x00},
{0x00db,0x00}, //luma_diff_thr_low
{0x00dc,0x03},
{0x00dd,0x00}, //luma_diff_thr_high

{0x01bc,0x00},
{0x01bd,0x60}, //thr_l_all
{0x01be,0x00},
{0x01bf,0x40}, //thr_l_avg

{0x00c8,0x01}, //total_speed
{0x0208,0x02}, //limit_speed

//AE smart
{0x0092,0x00}, //smart_mode
{0x0093,0x00}, //analysis_mode
{0x0094,0x00}, //smart_speed_limit

{0x0095,0x00}, //PDFH_move_avg
{0x00ad,0x04}, //ATT_block_cnt
{0x01c0,0x06}, //PDFH_used_cnt

//table reftarget
{0x0022,0x1e}, //use_cur_fps

{0x01e4,0x00},
{0x01e5,0x00},
{0x01e6,0x0b},
{0x01e7,0x00}, //table0
{0x01e8,0x00},
{0x01e9,0x00},
{0x01ea,0x2c},
{0x01eb,0x00}, //table1
{0x01ec,0x00},
{0x01ed,0x00},
{0x01ee,0xb0},
{0x01ef,0x00}, //table2
{0x01f0,0x00},
{0x01f1,0x02},
{0x01f2,0xc0},
{0x01f3,0x00}, //table3
{0x01f4,0x00},
{0x01f5,0x0b},
{0x01f6,0x00},
{0x01f7,0x00}, //table4
{0x01f8,0x00},
{0x01f9,0x2c},
{0x01fa,0x00},
{0x01fb,0x00}, //table5

//reftarget
{0x00b2,0x01},
{0x00b3,0xa0}, //ref_target_table0
{0x00b4,0x01},
{0x00b5,0xa0}, //ref_target_table1
{0x00b6,0x02},
{0x00b7,0x00}, //ref_target_table2
{0x00b8,0x01},
{0x00b9,0xe0}, //ref_target_table3
{0x00ba,0x01},
{0x00bb,0xb0}, //ref_target_table4
{0x00bc,0x01},
{0x00bd,0xe0}, //ref_target_table5

{0x01cb,0x00}, //avg_thr_low
{0x01cc,0x60}, //avg_thr_high
{0x01cd,0x23}, //avg_affect_val

//over exposure offset
{0x01d6,0x10},
{0x01d7,0x0e},
{0x01d8,0x1e},
{0x01d9,0x2c},
{0x01da,0x30},
{0x01db,0x28},

//main bodyratio table
{0x01dc,0x40},
{0x01dd,0x30},
{0x01de,0x20},
{0x01df,0x10},
{0x01e0,0x00},
{0x01e1,0x00},

{0x01b0,0x40}, //PDFL_brighten_max
{0x01b1,0x25}, //variance_affect_val
{0x01b2,0x01},
{0x01b3,0x00}, //variance_thr_low
{0x01b4,0x08},
{0x01b5,0x00}, //variance_thr_high

{0x01c6,0x30}, //PDFL_target
{0x01c7,0x1f}, //PDFH_max
{0x01c9,0x01}, //PDFH_target
{0x01ca,0x80}, //over_exp_affect_val_1
{0x01d0,0x01}, //over_exp_ref
{0x01d1,0x60}, //over_exp_affect_val_0
{0x01d2,0x08}, //under_exp_affect_val
{0x021d,0x04}, //PDFH_brighten_thr
{0x01b7,0x00}, //bright_ratio_thr_low
{0x01b8,0x20}, //bright_ratio_thr_middle
{0x01b9,0x60}, //bright_ratio_thr_high
{0x01ba,0x10}, //bright_ratio_affect

{0x00a6,0x32}, //CDF_high
{0x00a7,0x20}, //CDF_low

{0x0168,0x00},
{0x0169,0x00}, //min_avg_thr
{0x016a,0x03},
{0x016b,0x00}, //max_avg_thr
{0x016c,0x00},
{0x016d,0xa0}, //min_ATT_thr
{0x016e,0x02},
{0x016f,0x80}, //max_ATT_thr
{0x01d3,0x00}, //ATT_limit_affect_val_low
{0x01d4,0x10}, //ATT_limit_affect_val_high
{0x01d5,0x10}, //global_limit_ratio

{0x1a74,0x01}, //AE_mutiple_frame
{0x1a75,0x00}, //AE_active_frame

//LENC
{0xfffe,0x30},
{0x03ca,0x0c}, //lenc_scale
{0x03cb,0xcc},
{0x03cc,0x16},
{0x03cd,0xc1},
{0x03ce,0x0c},
{0x03cf,0xcc},
{0x03d0,0x0b},
{0x03d1,0x60},

{0x000e,0x00},
{0x000f,0x00},
{0x0010,0x00},
{0x0011,0x00},
{0x0012,0x80}, //lenc_skip

{0xfffe,0x14},
{0x0928,0x00},
{0x0929,0x4f}, //Alight_CT_thr
{0x092a,0x00},
{0x092b,0x83}, //Clight_CT_thr
{0x092c,0x01},
{0x092d,0x01}, //Dlight_CT_thr

{0x06e5,0x3f}, //A_light
{0x06e6,0x3f},
{0x06e7,0x3f},
{0x06e8,0x3f},
{0x06e9,0x3f},
{0x06ea,0x3f},
{0x06eb,0x3f},
{0x06ec,0x3f},
{0x06ed,0x29},
{0x06ee,0x19},
{0x06ef,0x12},
{0x06f0,0x10},
{0x06f1,0x10},
{0x06f2,0x14},
{0x06f3,0x1e},
{0x06f4,0x33},
{0x06f5,0x0c},
{0x06f6,0x07},
{0x06f7,0x05},
{0x06f8,0x04},
{0x06f9,0x04},
{0x06fa,0x05},
{0x06fb,0x08},
{0x06fc,0x0f},
{0x06fd,0x06},
{0x06fe,0x03},
{0x06ff,0x01},
{0x0700,0x00},
{0x0701,0x00},
{0x0702,0x01},
{0x0703,0x04},
{0x0704,0x07},
{0x0705,0x05},
{0x0706,0x02},
{0x0707,0x00},
{0x0708,0x00},
{0x0709,0x00},
{0x070a,0x01},
{0x070b,0x03},
{0x070c,0x07},
{0x070d,0x07},
{0x070e,0x04},
{0x070f,0x03},
{0x0710,0x03},
{0x0711,0x03},
{0x0712,0x04},
{0x0713,0x05},
{0x0714,0x0a},
{0x0715,0x17},
{0x0716,0x0d},
{0x0717,0x0a},
{0x0718,0x09},
{0x0719,0x09},
{0x071a,0x0b},
{0x071b,0x10},
{0x071c,0x1d},
{0x071d,0x3f},
{0x071e,0x3f},
{0x071f,0x3b},
{0x0720,0x36},
{0x0721,0x37},
{0x0722,0x3f},
{0x0723,0x3f},
{0x0724,0x3f},
{0x0725,0x02},
{0x0726,0x09},
{0x0727,0x0c},
{0x0728,0x0d},
{0x0729,0x0b},
{0x072a,0x0b},
{0x072b,0x07},
{0x072c,0x0b},
{0x072d,0x0f},
{0x072e,0x13},
{0x072f,0x15},
{0x0730,0x15},
{0x0731,0x14},
{0x0732,0x10},
{0x0733,0x0c},
{0x0734,0x08},
{0x0735,0x15},
{0x0736,0x1a},
{0x0737,0x1b},
{0x0738,0x1b},
{0x0739,0x19},
{0x073a,0x17},
{0x073b,0x13},
{0x073c,0x0e},
{0x073d,0x17},
{0x073e,0x1c},
{0x073f,0x1f},
{0x0740,0x20},
{0x0741,0x1f},
{0x0742,0x1c},
{0x0743,0x18},
{0x0744,0x14},
{0x0745,0x17},
{0x0746,0x1b},
{0x0747,0x1f},
{0x0748,0x21},
{0x0749,0x21},
{0x074a,0x1f},
{0x074b,0x1a},
{0x074c,0x16},
{0x074d,0x13},
{0x074e,0x18},
{0x074f,0x1b},
{0x0750,0x1d},
{0x0751,0x1d},
{0x0752,0x1a},
{0x0753,0x17},
{0x0754,0x13},
{0x0755,0x0d},
{0x0756,0x13},
{0x0757,0x16},
{0x0758,0x17},
{0x0759,0x17},
{0x075a,0x14},
{0x075b,0x10},
{0x075c,0x0c},
{0x075d,0x07},
{0x075e,0x0b},
{0x075f,0x0d},
{0x0760,0x0e},
{0x0761,0x0d},
{0x0762,0x0b},
{0x0763,0x08},
{0x0764,0x07},
{0x0765,0x2f},
{0x0766,0x2a},
{0x0767,0x2c},
{0x0768,0x2d},
{0x0769,0x30},
{0x076a,0x32},
{0x076b,0x32},
{0x076c,0x31},
{0x076d,0x24},
{0x076e,0x24},
{0x076f,0x25},
{0x0770,0x26},
{0x0771,0x28},
{0x0772,0x2c},
{0x0773,0x31},
{0x0774,0x34},
{0x0775,0x22},
{0x0776,0x22},
{0x0777,0x22},
{0x0778,0x22},
{0x0779,0x24},
{0x077a,0x26},
{0x077b,0x29},
{0x077c,0x2d},
{0x077d,0x22},
{0x077e,0x21},
{0x077f,0x20},
{0x0780,0x20},
{0x0781,0x21},
{0x0782,0x23},
{0x0783,0x25},
{0x0784,0x26},
{0x0785,0x23},
{0x0786,0x22},
{0x0787,0x20},
{0x0788,0x20},
{0x0789,0x20},
{0x078a,0x21},
{0x078b,0x23},
{0x078c,0x24},
{0x078d,0x25},
{0x078e,0x23},
{0x078f,0x22},
{0x0790,0x21},
{0x0791,0x22},
{0x0792,0x22},
{0x0793,0x24},
{0x0794,0x25},
{0x0795,0x27},
{0x0796,0x26},
{0x0797,0x24},
{0x0798,0x24},
{0x0799,0x24},
{0x079a,0x25},
{0x079b,0x27},
{0x079c,0x29},
{0x079d,0x28},
{0x079e,0x28},
{0x079f,0x27},
{0x07a0,0x27},
{0x07a1,0x28},
{0x07a2,0x2a},
{0x07a3,0x2b},
{0x07a4,0x2e},

{0x07a5,0x3f}, //C_light
{0x07a6,0x3f},
{0x07a7,0x3f},
{0x07a8,0x3f},
{0x07a9,0x3f},
{0x07aa,0x3f},
{0x07ab,0x3f},
{0x07ac,0x3f},
{0x07ad,0x2a},
{0x07ae,0x19},
{0x07af,0x12},
{0x07b0,0x10},
{0x07b1,0x11},
{0x07b2,0x15},
{0x07b3,0x1f},
{0x07b4,0x35},
{0x07b5,0x0b},
{0x07b6,0x07},
{0x07b7,0x05},
{0x07b8,0x04},
{0x07b9,0x05},
{0x07ba,0x06},
{0x07bb,0x08},
{0x07bc,0x10},
{0x07bd,0x06},
{0x07be,0x03},
{0x07bf,0x01},
{0x07c0,0x00},
{0x07c1,0x00},
{0x07c2,0x01},
{0x07c3,0x04},
{0x07c4,0x07},
{0x07c5,0x04},
{0x07c6,0x02},
{0x07c7,0x00},
{0x07c8,0x00},
{0x07c9,0x00},
{0x07ca,0x01},
{0x07cb,0x03},
{0x07cc,0x07},
{0x07cd,0x07},
{0x07ce,0x04},
{0x07cf,0x03},
{0x07d0,0x02},
{0x07d1,0x02},
{0x07d2,0x03},
{0x07d3,0x05},
{0x07d4,0x09},
{0x07d5,0x16},
{0x07d6,0x0d},
{0x07d7,0x0a},
{0x07d8,0x09},
{0x07d9,0x09},
{0x07da,0x0b},
{0x07db,0x10},
{0x07dc,0x1c},
{0x07dd,0x3f},
{0x07de,0x3f},
{0x07df,0x39},
{0x07e0,0x34},
{0x07e1,0x36},
{0x07e2,0x3e},
{0x07e3,0x3f},
{0x07e4,0x3f},
{0x07e5,0x08},
{0x07e6,0x0c},
{0x07e7,0x0f},
{0x07e8,0x0f},
{0x07e9,0x0d},
{0x07ea,0x0b},
{0x07eb,0x0b},
{0x07ec,0x08},
{0x07ed,0x12},
{0x07ee,0x16},
{0x07ef,0x17},
{0x07f0,0x16},
{0x07f1,0x14},
{0x07f2,0x11},
{0x07f3,0x0c},
{0x07f4,0x09},
{0x07f5,0x19},
{0x07f6,0x1b},
{0x07f7,0x1d},
{0x07f8,0x1c},
{0x07f9,0x1a},
{0x07fa,0x17},
{0x07fb,0x14},
{0x07fc,0x0e},
{0x07fd,0x18},
{0x07fe,0x1d},
{0x07ff,0x1f},
{0x0800,0x20},
{0x0801,0x1f},
{0x0802,0x1c},
{0x0803,0x18},
{0x0804,0x14},
{0x0805,0x16},
{0x0806,0x1b},
{0x0807,0x1f},
{0x0808,0x21},
{0x0809,0x21},
{0x080a,0x1e},
{0x080b,0x1a},
{0x080c,0x16},
{0x080d,0x13},
{0x080e,0x18},
{0x080f,0x1b},
{0x0810,0x1c},
{0x0811,0x1c},
{0x0812,0x1a},
{0x0813,0x17},
{0x0814,0x13},
{0x0815,0x0f},
{0x0816,0x13},
{0x0817,0x16},
{0x0818,0x17},
{0x0819,0x17},
{0x081a,0x14},
{0x081b,0x11},
{0x081c,0x0d},
{0x081d,0x0a},
{0x081e,0x0d},
{0x081f,0x0f},
{0x0820,0x0f},
{0x0821,0x0d},
{0x0822,0x0b},
{0x0823,0x09},
{0x0824,0x09},
{0x0825,0x1b},
{0x0826,0x18},
{0x0827,0x1a},
{0x0828,0x1c},
{0x0829,0x1e},
{0x082a,0x1e},
{0x082b,0x1d},
{0x082c,0x1a},
{0x082d,0x16},
{0x082e,0x19},
{0x082f,0x1c},
{0x0830,0x1e},
{0x0831,0x20},
{0x0832,0x22},
{0x0833,0x23},
{0x0834,0x21},
{0x0835,0x1a},
{0x0836,0x1c},
{0x0837,0x1e},
{0x0838,0x1f},
{0x0839,0x21},
{0x083a,0x22},
{0x083b,0x23},
{0x083c,0x22},
{0x083d,0x1c},
{0x083e,0x1e},
{0x083f,0x1f},
{0x0840,0x20},
{0x0841,0x20},
{0x0842,0x21},
{0x0843,0x21},
{0x0844,0x1f},
{0x0845,0x1e},
{0x0846,0x1f},
{0x0847,0x20},
{0x0848,0x20},
{0x0849,0x20},
{0x084a,0x20},
{0x084b,0x20},
{0x084c,0x1d},
{0x084d,0x1d},
{0x084e,0x1e},
{0x084f,0x1f},
{0x0850,0x1f},
{0x0851,0x1f},
{0x0852,0x1f},
{0x0853,0x1e},
{0x0854,0x1d},
{0x0855,0x1b},
{0x0856,0x1c},
{0x0857,0x1d},
{0x0858,0x1d},
{0x0859,0x1d},
{0x085a,0x1e},
{0x085b,0x1d},
{0x085c,0x1b},
{0x085d,0x16},
{0x085e,0x16},
{0x085f,0x18},
{0x0860,0x19},
{0x0861,0x1a},
{0x0862,0x1a},
{0x0863,0x19},
{0x0864,0x19},

{0x0865,0x07}, //D_light
{0x0866,0x09},
{0x0867,0x0b},
{0x0868,0x0c},
{0x0869,0x0c},
{0x086a,0x0b},
{0x086b,0x08},
{0x086c,0x07},
{0x086d,0x09},
{0x086e,0x09},
{0x086f,0x08},
{0x0870,0x07},
{0x0871,0x07},
{0x0872,0x08},
{0x0873,0x09},
{0x0874,0x09},
{0x0875,0x05},
{0x0876,0x03},
{0x0877,0x02},
{0x0878,0x02},
{0x0879,0x02},
{0x087a,0x02},
{0x087b,0x04},
{0x087c,0x06},
{0x087d,0x02},
{0x087e,0x01},
{0x087f,0x00},
{0x0880,0x00},
{0x0881,0x00},
{0x0882,0x01},
{0x0883,0x01},
{0x0884,0x03},
{0x0885,0x02},
{0x0886,0x01},
{0x0887,0x00},
{0x0888,0x00},
{0x0889,0x00},
{0x088a,0x00},
{0x088b,0x01},
{0x088c,0x03},
{0x088d,0x03},
{0x088e,0x02},
{0x088f,0x01},
{0x0890,0x01},
{0x0891,0x01},
{0x0892,0x01},
{0x0893,0x02},
{0x0894,0x04},
{0x0895,0x08},
{0x0896,0x06},
{0x0897,0x06},
{0x0898,0x05},
{0x0899,0x06},
{0x089a,0x06},
{0x089b,0x07},
{0x089c,0x08},
{0x089d,0x08},
{0x089e,0x0b},
{0x089f,0x0d},
{0x08a0,0x0d},
{0x08a1,0x0d},
{0x08a2,0x0c},
{0x08a3,0x09},
{0x08a4,0x06},
{0x08a5,0x19},
{0x08a6,0x1f},
{0x08a7,0x22},
{0x08a8,0x21},
{0x08a9,0x22},
{0x08aa,0x26},
{0x08ab,0x26},
{0x08ac,0x21},
{0x08ad,0x1d},
{0x08ae,0x1c},
{0x08af,0x1d},
{0x08b0,0x20},
{0x08b1,0x23},
{0x08b2,0x28},
{0x08b3,0x2f},
{0x08b4,0x35},
{0x08b5,0x1d},
{0x08b6,0x1c},
{0x08b7,0x1d},
{0x08b8,0x1f},
{0x08b9,0x23},
{0x08ba,0x27},
{0x08bb,0x2d},
{0x08bc,0x32},
{0x08bd,0x23},
{0x08be,0x1f},
{0x08bf,0x1f},
{0x08c0,0x1f},
{0x08c1,0x20},
{0x08c2,0x23},
{0x08c3,0x26},
{0x08c4,0x2a},
{0x08c5,0x27},
{0x08c6,0x23},
{0x08c7,0x21},
{0x08c8,0x20},
{0x08c9,0x21},
{0x08ca,0x22},
{0x08cb,0x23},
{0x08cc,0x24},
{0x08cd,0x28},
{0x08ce,0x24},
{0x08cf,0x21},
{0x08d0,0x20},
{0x08d1,0x20},
{0x08d2,0x22},
{0x08d3,0x24},
{0x08d4,0x27},
{0x08d5,0x25},
{0x08d6,0x23},
{0x08d7,0x22},
{0x08d8,0x21},
{0x08d9,0x22},
{0x08da,0x25},
{0x08db,0x26},
{0x08dc,0x27},
{0x08dd,0x22},
{0x08de,0x23},
{0x08df,0x21},
{0x08e0,0x21},
{0x08e1,0x22},
{0x08e2,0x24},
{0x08e3,0x25},
{0x08e4,0x26},
{0x08e5,0x1f},
{0x08e6,0x25},
{0x08e7,0x23},
{0x08e8,0x22},
{0x08e9,0x20},
{0x08ea,0x21},
{0x08eb,0x1f},
{0x08ec,0x19},
{0x08ed,0x2d},
{0x08ee,0x28},
{0x08ef,0x24},
{0x08f0,0x21},
{0x08f1,0x1f},
{0x08f2,0x1e},
{0x08f3,0x1e},
{0x08f4,0x1f},
{0x08f5,0x2b},
{0x08f6,0x27},
{0x08f7,0x23},
{0x08f8,0x21},
{0x08f9,0x1e},
{0x08fa,0x1e},
{0x08fb,0x1e},
{0x08fc,0x20},
{0x08fd,0x26},
{0x08fe,0x23},
{0x08ff,0x21},
{0x0900,0x20},
{0x0901,0x1f},
{0x0902,0x1f},
{0x0903,0x20},
{0x0904,0x24},
{0x0905,0x23},
{0x0906,0x22},
{0x0907,0x21},
{0x0908,0x20},
{0x0909,0x20},
{0x090a,0x21},
{0x090b,0x23},
{0x090c,0x27},
{0x090d,0x27},
{0x090e,0x24},
{0x090f,0x22},
{0x0910,0x22},
{0x0911,0x21},
{0x0912,0x23},
{0x0913,0x25},
{0x0914,0x2b},
{0x0915,0x28},
{0x0916,0x28},
{0x0917,0x26},
{0x0918,0x25},
{0x0919,0x24},
{0x091a,0x25},
{0x091b,0x27},
{0x091c,0x29},
{0x091d,0x28},
{0x091e,0x26},
{0x091f,0x25},
{0x0920,0x24},
{0x0921,0x24},
{0x0922,0x23},
{0x0923,0x26},
{0x0924,0x24},

{0xfffe,0x30},
{0x03c2,0x48}, //min_q
{0x03c3,0x48}, //max_q
{0x03c4,0x07}, //lenc_ctrl
{0x03c6,0x02},
{0x03c7,0x00}, //autoG_max_gain
{0x03c8,0x00},
{0x03c9,0x20}, //autoG_min_gain

//BLC
{0xfffe,0x30},
{0x0013,0x00},
{0x0014,0x00},
{0x071b,0x00},

//AWB
{0xfffe,0x14},
{0x0248,0x01}, //AWB_mode
{0x0249,0x01}, //AWB_fleximap_en
{0x027a,0x00},
{0x027b,0x10}, //min_num
{0x027c,0x0f},
{0x027d,0xff}, //max_awb_gain
{0x027e,0x04}, //awb_step
{0x027f,0x80}, //max_step_value

{0x02b6,0x06},
{0x02b7,0x00}, //B_temp
{0x02ba,0x04},
{0x02bb,0x00}, //G_temp
{0x02be,0x04},
{0x02bf,0x00}, //R_temp

{0x024a,0x00}, //awb_move_en
{0x024e,0x00},
{0x024f,0x20}, //D65:B_offset
{0x0252,0x00},
{0x0253,0x00}, //D65:R_offset
{0x0256,0x00},
{0x0257,0x00}, //CWF:B_offset
{0x025a,0x00},
{0x025b,0x00}, //CWF:R_offset
{0x025e,0x00},
{0x025f,0x00}, //A:B_offset
{0x0262,0x00},
{0x0263,0x00}, //A:R_offset
{0x0264,0x00},
{0x0265,0x38}, //awb_color0
{0x0266,0x00},
{0x0267,0x61}, //awb_color1
{0x0268,0x00},
{0x0269,0xd0}, //awb_color2
{0x026a,0x80}, //awb_shift_R
{0x026b,0x80}, //awb_shift_B

{0xfffe,0x30},
{0x0708,0x02},
{0x0709,0xa0}, //pixel_max_value
{0x070a,0x00},
{0x070b,0x10}, //pixel_min_value

{0xfffe,0x30},
{0x0730,0x9a},
{0x0731,0xbe},
{0x0732,0x30},
{0x0733,0x40},
{0x0734,0x90},
{0x0735,0xaa},
{0x0736,0x3e},
{0x0737,0x5e},
{0x0738,0x51},
{0x0739,0x6e},
{0x073a,0x4a},
{0x073b,0x66},
{0x073c,0x60},
{0x073d,0x7a},
{0x073e,0x5a},
{0x073f,0x73},
{0x0740,0x50},
{0x0741,0x62},
{0x0742,0x5c},
{0x0743,0x80},
{0x0744,0x77},
{0x0745,0x92},
{0x0746,0x5d},
{0x0747,0x6f},
{0x0748,0x44},
{0x0749,0x55},
{0x074a,0x49},
{0x074b,0x7e},
{0x074c,0x64},
{0x074d,0x91},
{0x074e,0x4b},
{0x074f,0x60},
{0x0750,0x00},
{0x0751,0x00},
{0x0752,0x00},
{0x0753,0x00},
{0x0754,0x00},
{0x0755,0x00},
{0x0756,0x00},
{0x0757,0x00},
{0x0758,0x00},
{0x0759,0x00},
{0x075a,0x00},
{0x075b,0x00},
{0x075c,0x00},
{0x075d,0x00},
{0x075e,0x00},
{0x075f,0x00},
{0x0760,0x00},
{0x0761,0x00},
{0x0762,0x00},
{0x0763,0x00},
{0x0764,0x00},
{0x0765,0x00},
{0x0766,0x00},
{0x0767,0x00},
{0x0768,0x00},
{0x0769,0x00},
{0x076a,0x00},
{0x076b,0x00},
{0x076c,0x00},
{0x076d,0x00},
{0x076e,0x00},
{0x076f,0x00},
{0x0770,0x22},
{0x0771,0x21},
{0x0772,0x11},
{0x0773,0x11},
{0x0774,0x00},
{0x0775,0x00},
{0x0776,0x00},
{0x0777,0x00},

//RAW Gamma
{0xfffe,0x30},
{0x0901,0x02},
{0x0902,0x05},
{0x0903,0x0a},
{0x0904,0x14},
{0x0905,0x19},
{0x0906,0x1e},
{0x0907,0x24},
{0x0908,0x29},
{0x0909,0x2f},
{0x090a,0x36},
{0x090b,0x43},
{0x090c,0x51},
{0x090d,0x70},
{0x090e,0x90},
{0x090f,0xb2},
{0x0910,0x0f},

//RGB Gamma
{0xfffe,0x30},
{0x1400,0x00},
{0x1401,0x03},
{0x1402,0x06},
{0x1403,0x09},
{0x1404,0x0c},
{0x1405,0x0f},
{0x1406,0x12},
{0x1407,0x15},
{0x1408,0x18},
{0x1409,0x1b},
{0x140a,0x1f},
{0x140b,0x22},
{0x140c,0x25},
{0x140d,0x28},
{0x140e,0x2c},
{0x140f,0x30},
{0x1410,0x33},
{0x1411,0x37},
{0x1412,0x3b},
{0x1413,0x3f},
{0x1414,0x43},
{0x1415,0x47},
{0x1416,0x4b},
{0x1417,0x4f},
{0x1418,0x52},
{0x1419,0x56},
{0x141a,0x5a},
{0x141b,0x5e},
{0x141c,0x61},
{0x141d,0x65},
{0x141e,0x68},
{0x141f,0x6c},
{0x1420,0x70},
{0x1421,0x77},
{0x1422,0x7d},
{0x1423,0x84},
{0x1424,0x8b},
{0x1425,0x91},
{0x1426,0x97},
{0x1427,0x9c},
{0x1428,0xa1},
{0x1429,0xa5},
{0x142a,0xa9},
{0x142b,0xad},
{0x142c,0xb0},
{0x142d,0xb4},
{0x142e,0xb6},
{0x142f,0xb9},
{0x1430,0xbc},
{0x1431,0xc1},
{0x1432,0xc5},
{0x1433,0xca},
{0x1434,0xce},
{0x1435,0xd2},
{0x1436,0xd6},
{0x1437,0xda},
{0x1438,0xde},
{0x1439,0xe2},
{0x143a,0xe6},
{0x143b,0xea},
{0x143c,0xee},
{0x143d,0xf2},
{0x143e,0xf6},
{0x143f,0xfb},
{0x1440,0xff},

{0x1450,0xff},
{0x1451,0x03},
{0x1452,0x6e},
{0x1453,0x10},

//CMX
{0xfffe,0x30},
{0x1200,0x01},
{0x1201,0x3a},
{0x1202,0x00},
{0x1203,0x0c},
{0x1204,0x00},
{0x1205,0x77},
{0x1206,0x01},
{0x1207,0x81},
{0x1208,0x00},
{0x1209,0x7c},
{0x120a,0x02},
{0x120b,0xc1},
{0x120c,0x04},
{0x120d,0xc8},
{0x120e,0x01},
{0x120f,0xbb},
{0x1210,0x01},
{0x1211,0x12},
{0x1212,0x01},
{0x1213,0x87},
{0x1214,0x01},
{0x1215,0xe0},
{0x1216,0x02},
{0x1217,0x4b},
{0x1218,0x03},
{0x1219,0x8c},
{0x121a,0x00},
{0x121b,0x54},
{0x121c,0x00},
{0x121d,0x17},
{0x121e,0x01},
{0x121f,0xdb},
{0x1220,0x00},
{0x1221,0x4d},
{0x1222,0x03},
{0x1223,0xac},
{0x122e,0x08},
{0x122f,0x00},
{0x1230,0x1a},
{0x1228,0x00},
{0x1229,0x8c},
{0x122a,0x00},
{0x122b,0xd9},
{0x122c,0x01},
{0x122d,0x8e},

{0x1231,0x02}, //cmx_ctrl
{0x1232,0x40},
{0x1233,0x40},
{0x1234,0x07},
{0x1235,0x0f},

//advance_raw_dns
{0xfffe,0x30},
{0x2000,0x0a}, //s0_sigma_0
{0x2001,0x0f},
{0x2002,0x16},
{0x2003,0x18},
{0x2004,0x1a},
{0x2005,0x1a},

{0x2006,0x18}, //s0_Gsl_0
{0x2007,0x12},
{0x2008,0x10},
{0x2009,0x06},
{0x200a,0x01},
{0x200b,0x01},

{0x200c,0x10}, //s0_RBsl_0
{0x200d,0x0e},
{0x200e,0x0a},
{0x200f,0x06},
{0x2010,0x01},
{0x2011,0x01},

{0x2012,0x28}, //s0_ps00
{0x2013,0x2a},
{0x2014,0x2e},
{0x2015,0x20},
{0x2016,0x24},
{0x2017,0x28},

{0x2018,0x20}, //s0_ps10
{0x2019,0x24},
{0x201a,0x28},
{0x201b,0x2c},
{0x201c,0x30},
{0x201d,0x34},

{0x201e,0x2c}, //s0_ps20
{0x201f,0x28},
{0x2020,0x30},
{0x2021,0x20},
{0x2022,0x30},
{0x2023,0x34},

{0x2024,0x10}, //s0_ps30
{0x2025,0x2c},
{0x2026,0x30},
{0x2027,0x24},
{0x2028,0x30},
{0x2029,0x34},

{0x202a,0x20}, //s0_pl00
{0x202b,0x20},
{0x202c,0x20},
{0x202d,0x20},
{0x202e,0x20},
{0x202f,0x20},

{0x2030,0x20}, //s0_pl10
{0x2031,0x20},
{0x2032,0x20},
{0x2033,0x20},
{0x2034,0x20},
{0x2035,0x20},

{0x2036,0x20}, //s0_pl20
{0x2037,0x20},
{0x2038,0x20},
{0x2039,0x20},
{0x203a,0x20},
{0x203b,0x20},

{0x203c,0x20}, //s0_pl30
{0x203d,0x20},
{0x203e,0x20},
{0x203f,0x20},
{0x2040,0x20},
{0x2041,0x20},

{0x2044,0x10}, //thre_y

//UV_dns
{0xfffe,0x30},
{0x2100,0x01}, //l_noise_list0
{0x2101,0x01},
{0x2102,0x01},
{0x2103,0x01},
{0x2104,0x3f},
{0x2105,0x4f},
{0x2106,0x5f}, //uv_dns_ctrl
{0x2107,0x08}, //noise_man_value

//CIP
{0xfffe,0x30},
{0x0f00,0x12}, //bit[7:4] noise_y_slp bit[3:0] Lsharp
{0x0f02,0x00}, //noise_list0
{0x0f03,0x00},
{0x0f04,0x00},
{0x0f05,0x00},
{0x0f06,0x00},
{0x0f07,0x00},
{0x0f08,0x00},
{0x0f09,0x00},
{0x0f0a,0x2f}, //min_shp
{0x0f0b,0x3f}, //max_shp
{0x0f0c,0x01}, //min_detail
{0x0f0d,0x03}, //max_detail
{0x0f0e,0x06}, //min_shp_gain
{0x0f0f,0x0c}, //max_shp_gain
{0x0f10,0x20},

//WDR
{0xfffe,0x30},
{0x2b04,0x08}, //sat_factor
{0x2b16,0x04}, //wdr_ctrl

{0xfffe,0x14},
{0x09ab,0x02}, //Gmax
{0x09ac,0x08},
{0x09ad,0xb4}, //map_rang
{0x09ae,0x41}, //PDF64_num_thd
{0x09af,0xff}, //gray_high
{0x09b2,0x02},
{0x09b3,0x00}, //gain_thd
{0x09b4,0x10}, //ext_ratio
{0x09b5,0x14}, //ext_ratio_max
{0x09b6,0x00}, //weak_adj_on

{0xfffe,0x30},
{0x2b9a,0x00},
{0x2b9b,0x00}, //gain_list0
{0x2b9c,0x10},
{0x2b9d,0x00},
{0x2b9e,0x20},
{0x2b9f,0x00},
{0x2ba0,0x40},
{0x2ba1,0x00},
{0x2ba2,0x70},
{0x2ba3,0x00},
{0x2ba4,0xa0},
{0x2ba5,0x00},
{0x2ba6,0xd0},
{0x2ba7,0x00},
{0x2ba8,0x00},
{0x2ba9,0x01},
{0x2bac,0x18}, //thd0
{0x2bad,0x18},
{0x2bae,0x1a},
{0x2baf,0x1a},
{0x2bb0,0x1b},
{0x2bb1,0x1b},
{0x2bb2,0x1d},
{0x2bb3,0x20},
{0x2bb4,0x7f}, //thd0_max
{0x2bb5,0x7f},
{0x2bb6,0x7f},
{0x2bb7,0x7f},
{0x2bb8,0x7f},
{0x2bb9,0x7f},
{0x2bba,0x7f},
{0x2bbb,0x7f},
{0x2bbc,0x24}, //enhance_ratio0
{0x2bbd,0x24},
{0x2bbe,0x20},
{0x2bbf,0x12},
{0x2bc0,0x0e},
{0x2bc1,0x0e},
{0x2bc2,0x0c},
{0x2bc3,0x0c},

//Auto_Sat
{0xfffe,0x14},
{0x026c,0x00}, //auto_sat_enable
{0x026d,0x20},
{0x026e,0x50}, //sat_U0
{0x026f,0x40},
{0x0270,0x40},
{0x0271,0x30},
{0x0272,0x30},
{0x0273,0x30},
{0x0274,0x50}, //sat_V0
{0x0275,0x3a},
{0x0276,0x3a},
{0x0277,0x2a},
{0x0278,0x2a},
{0x0279,0x2a},

//TOP
{0xfffe,0x14},
{0x002b,0x01}, //AE_enable
{0x002c,0x01}, //awb_enable
{0x002f,0x01}, //wdr_enable
{0x0030,0x01}, //lenc_enable
{0x0620,0x01},
{0x0621,0x01},

{0xfffe,0x30},
{0x0000,0x47},
{0x0001,0x92},
{0x0002,0x16},
{0x0003,0x35},
{0x0004,0x90},
{0x2300,0x0a},

{0x0019,0x08},
{0x071c,0x0a},
{0x1700,0x09},
{0x1701,0x33},
{0x1702,0x2c},
{0x1704,0x22}, //contrast_ygain
{0x1707,0x00}, //ybright

//IQ_end

//0xfffe,0x50,
//0x001a,0x08,
//0x001a,0x00,
};

const  regval_list XC7022_v3_Init_IQ_regs[] = {
//Initial_start
{0xfffd,0x80},
{0xfffe,0x50},
{0x001c,0xff},
{0x001d,0xff},
{0x001e,0xff},
{0x001f,0xff}, //clk_en
{0x0018,0x00},
{0x0019,0x00},
{0x001a,0x00},
{0x001b,0x00}, //reset

{0x0030,0xa4},
{0x0031,0x91},
{0x0032,0x43},
{0x0033,0x70},

{0x0020,0x02},
{0x0021,0x0d},
{0x0022,0x01},
{0x0023,0x85},
{0x0024,0x03},
{0x0025,0x06},
{0x0026,0x01},
{0x0027,0x06},
{0x0028,0x01},
{0x0029,0x00},
{0x002a,0x01},
{0x002b,0x05},
{0x002e,0x02}, //PLL

{0xfffe,0x50},
{0x0050,0x02},
{0x0054,0x02},
{0x0058,0x02}, //GPIO_Ctr

{0xfffe,0x50},
{0x00bc,0x19},
{0x0090,0x38},

{0x0200,0x0f}, //mipi_rx1_pad
{0x0201,0x00},
{0x0202,0x80},
{0x0203,0x01},

{0xfffe,0x26},
{0x8000,0x1d}, //colorbar
{0x8001,0x80},
{0x8002,0x07},
{0x8003,0x38},
{0x8004,0x04},
{0x8005,0x03},
{0x8006,0x05},
{0x8007,0x99},
{0x8008,0x14},
{0x8009,0x04},

{0xfffe,0x26},
{0x8010,0x05}, //before_isp_crop
{0x8012,0x80},
{0x8013,0x07},
{0x8014,0x38},
{0x8015,0x04},
{0x8016,0x00},
{0x8017,0x00},
{0x8018,0x01},
{0x8019,0x00},

{0xfffe,0x30},
{0x0000,0x01}, //isp0_set
{0x0001,0x10},
{0x0002,0x10},
{0x0003,0x20},
{0x0004,0x10},
{0x0019,0x08},
{0x0050,0x20}, //dummy_line

{0x005e,0x7F},
{0x005f,0x07},
{0x0060,0x37},
{0x0061,0x04},
{0x0064,0x00},
{0x0065,0x05},
{0x0066,0xD0},
{0x0067,0x02},

{0x0006,0x07},
{0x0007,0x80},
{0x0008,0x04},
{0x0009,0x38},
{0x000a,0x05},
{0x000b,0x00},
{0x000c,0x02},
{0x000d,0xD0},

{0x001e,0x07}, //isp_scale
{0x001f,0x80},
{0x0020,0x04},
{0x0021,0x38},

{0x007e,0x05},
{0x007f,0x00},
{0x0080,0x02},
{0x0081,0xD0},
{0x0082,0x01},

{0xfffe,0x30},
{0x1a00,0x00}, //isp_crop
{0x1a01,0x00},
{0x1a02,0x00},
{0x1a03,0x00},
{0x1a04,0x05},
{0x1a05,0x00},
{0x1a06,0x02},
{0x1a07,0xD0},
{0x1a08,0x00},

{0xfffe,0x26},
{0x0000,0x20}, //mipi_rx_lane
{0x0009,0xc4}, //mipi_rx_set

{0xfffe,0x26},
{0x2019,0x05}, //mipi_tx
{0x201a,0x00},
{0x201b,0x02},
{0x201c,0xD0},
{0x201d,0x00},
{0x201e,0x00},
{0x201f,0x00},
{0x2020,0x00},

{0x2015,0x80},
{0x2017,0x1e},
{0x2018,0x00},
{0x2023,0x01}, //mipi_tx_set

{0xfffe,0x2c},
{0x0000,0x00}, //stitch
{0x0008,0x10},

{0x0044,0x08}, //fifo
{0x0045,0x04},
{0x0048,0x09},
{0x0049,0xF0},

{0xfffe,0x2e},
{0x0000,0x00}, //retiming
{0x0001,0xcc},
{0x0002,0x00},
{0x0003,0x01},
{0x0004,0xe0},

{0xfffe,0x30},
{0x006c,0x80}, //pixel_order
{0x1800,0x10},

{0xfffe,0x50},
{0x0226,0x02}, //rx2_off

{0xfffe,0x25},
{0x0002,0xf0}, //i2c_master_speed

{0xfffe,0x2d},
{0x0000,0x88}, //hispi_set
{0x0001,0x88},
{0x0002,0x0c},
{0x0003,0x39},
{0x0004,0x04},
{0x0005,0x80},
{0x0006,0x07},
{0x0007,0x00},
{0x0008,0x0f},
{0x0009,0x10},
{0x000a,0x00},
{0x0013,0xc0},
{0x0014,0x80},
{0x0015,0xe0},
{0x0016,0xa0},
{0x1000,0x88},
{0x1001,0x88},
{0x1002,0x0c},
{0x1003,0x38},
{0x1004,0x04},
{0x1005,0x80},
{0x1006,0x07},
{0x1007,0x10},
{0x1008,0x00},
{0x1009,0x10},
{0x100a,0x00},
{0x1013,0xc0},
{0x1014,0x80},
{0x1015,0xe0},
{0x1016,0xa0},
{0x000b,0x80},
{0x100b,0x80},
{0x000b,0x00},
{0x100b,0x00},

//Initial_end

//patch_start
//以下patch setting需根据实际需求或先前参数添加进来

{0xfffd, 0x80},
{0xfffe, 0x50},
{0x000e, 0x54},
{0xfffe, 0x14},
{0x0006, 0x09},
{0x0007, 0x44},
{0x0014, 0x00},
{0x0015, 0x14},
{0x0016, 0x24},
{0x0017, 0xf4},
{0x2114, 0x9c},
{0x2115, 0x21},
{0x2116, 0xff},
{0x2117, 0xf4},
{0x2118, 0xd4},
{0x2119, 0x01},
{0x211a, 0x48},
{0x211b, 0x00},
{0x211c, 0xd4},
{0x211d, 0x01},
{0x211e, 0x50},
{0x211f, 0x04},
{0x2120, 0xd4},
{0x2121, 0x01},
{0x2122, 0x60},
{0x2123, 0x08},
{0x2124, 0x07},
{0x2125, 0xfb},
{0x2126, 0x07},
{0x2127, 0xa5},
{0x2128, 0x15},
{0x2129, 0x00},
{0x212a, 0x00},
{0x212b, 0x00},
{0x212c, 0x84},
{0x212d, 0x6b},
{0x212e, 0x00},
{0x212f, 0x08},
{0x2130, 0x95},
{0x2131, 0x43},
{0x2132, 0x01},
{0x2133, 0x0e},
{0x2134, 0xbc},
{0x2135, 0x4a},
{0x2136, 0x00},
{0x2137, 0x55},
{0x2138, 0x10},
{0x2139, 0x00},
{0x213a, 0x00},
{0x213b, 0x29},
{0x213c, 0x9c},
{0x213d, 0x60},
{0x213e, 0x31},
{0x213f, 0x00},
{0x2140, 0x9c},
{0x2141, 0x80},
{0x2142, 0x00},
{0x2143, 0x00},
{0x2144, 0x07},
{0x2145, 0xfb},
{0x2146, 0x17},
{0x2147, 0x71},
{0x2148, 0x9c},
{0x2149, 0xa0},
{0x214a, 0x00},
{0x214b, 0x02},
{0x214c, 0xbc},
{0x214d, 0x4a},
{0x214e, 0x00},
{0x214f, 0x3c},
{0x2150, 0x10},
{0x2151, 0x00},
{0x2152, 0x00},
{0x2153, 0x5b},
{0x2154, 0xbc},
{0x2155, 0x4a},
{0x2156, 0x00},
{0x2157, 0x3f},
{0x2158, 0xa8},
{0x2159, 0x8a},
{0x215a, 0x00},
{0x215b, 0x00},
{0x215c, 0x9c},
{0x215d, 0x60},
{0x215e, 0x04},
{0x215f, 0x00},
{0x2160, 0x9d},
{0x2161, 0x80},
{0x2162, 0x00},
{0x2163, 0x00},
{0x2164, 0x07},
{0x2165, 0xfb},
{0x2166, 0x78},
{0x2167, 0x21},
{0x2168, 0x15},
{0x2169, 0x00},
{0x216a, 0x00},
{0x216b, 0x00},
{0x216c, 0x9c},
{0x216d, 0x60},
{0x216e, 0x00},
{0x216f, 0x20},
{0x2170, 0xe0},
{0x2171, 0x63},
{0x2172, 0x58},
{0x2173, 0x02},
{0x2174, 0xa5},
{0x2175, 0x43},
{0x2176, 0xff},
{0x2177, 0xff},
{0x2178, 0x18},
{0x2179, 0x60},
{0x217a, 0x00},
{0x217b, 0x14},
{0x217c, 0xa8},
{0x217d, 0x63},
{0x217e, 0x5d},
{0x217f, 0x00},
{0x2180, 0x8c},
{0x2181, 0x63},
{0x2182, 0x00},
{0x2183, 0x00},
{0x2184, 0xbc},
{0x2185, 0x03},
{0x2186, 0x00},
{0x2187, 0x00},
{0x2188, 0x10},
{0x2189, 0x00},
{0x218a, 0x00},
{0x218b, 0x5b},
{0x218c, 0x15},
{0x218d, 0x00},
{0x218e, 0x00},
{0x218f, 0x00},
{0x2190, 0x9c},
{0x2191, 0x60},
{0x2192, 0x30},
{0x2193, 0x96},
{0x2194, 0x9c},
{0x2195, 0x80},
{0x2196, 0x04},
{0x2197, 0x80},
{0x2198, 0x07},
{0x2199, 0xfb},
{0x219a, 0x17},
{0x219b, 0x5c},
{0x219c, 0x9c},
{0x219d, 0xa0},
{0x219e, 0x00},
{0x219f, 0x02},
{0x21a0, 0x9c},
{0x21a1, 0x60},
{0x21a2, 0x30},
{0x21a3, 0x98},
{0x21a4, 0x9c},
{0x21a5, 0x80},
{0x21a6, 0x04},
{0x21a7, 0x80},
{0x21a8, 0x07},
{0x21a9, 0xfb},
{0x21aa, 0x17},
{0x21ab, 0x58},
{0x21ac, 0x9c},
{0x21ad, 0xa0},
{0x21ae, 0x00},
{0x21af, 0x02},
{0x21b0, 0x9c},
{0x21b1, 0x60},
{0x21b2, 0x32},
{0x21b3, 0x02},
{0x21b4, 0x9c},
{0x21b5, 0x80},
{0x21b6, 0x00},
{0x21b7, 0x80},
{0x21b8, 0x07},
{0x21b9, 0xfb},
{0x21ba, 0x17},
{0x21bb, 0x54},
{0x21bc, 0x9c},
{0x21bd, 0xa0},
{0x21be, 0x00},
{0x21bf, 0x02},
{0x21c0, 0x9c},
{0x21c1, 0x60},
{0x21c2, 0x32},
{0x21c3, 0x06},
{0x21c4, 0x9c},
{0x21c5, 0x80},
{0x21c6, 0x0b},
{0x21c7, 0x08},
{0x21c8, 0x07},
{0x21c9, 0xfb},
{0x21ca, 0x17},
{0x21cb, 0x50},
{0x21cc, 0x9c},
{0x21cd, 0xa0},
{0x21ce, 0x00},
{0x21cf, 0x02},
{0x21d0, 0x9c},
{0x21d1, 0x60},
{0x21d2, 0x32},
{0x21d3, 0x08},
{0x21d4, 0x00},
{0x21d5, 0x00},
{0x21d6, 0x00},
{0x21d7, 0x59},
{0x21d8, 0x9c},
{0x21d9, 0x80},
{0x21da, 0x1e},
{0x21db, 0x13},
{0x21dc, 0x9c},
{0x21dd, 0x80},
{0x21de, 0x00},
{0x21df, 0x04},
{0x21e0, 0x07},
{0x21e1, 0xfb},
{0x21e2, 0x17},
{0x21e3, 0x4a},
{0x21e4, 0x9c},
{0x21e5, 0xa0},
{0x21e6, 0x00},
{0x21e7, 0x02},
{0x21e8, 0xb8},
{0x21e9, 0x6a},
{0x21ea, 0x00},
{0x21eb, 0x05},
{0x21ec, 0x07},
{0x21ed, 0xfb},
{0x21ee, 0x77},
{0x21ef, 0xff},
{0x21f0, 0x9c},
{0x21f1, 0x80},
{0x21f2, 0x00},
{0x21f3, 0x56},
{0x21f4, 0xa5},
{0x21f5, 0x4b},
{0x21f6, 0xff},
{0x21f7, 0xff},
{0x21f8, 0xbc},
{0x21f9, 0xaa},
{0x21fa, 0x00},
{0x21fb, 0xff},
{0x21fc, 0x10},
{0x21fd, 0x00},
{0x21fe, 0x00},
{0x21ff, 0x28},
{0x2200, 0xbc},
{0x2201, 0xaa},
{0x2202, 0x00},
{0x2203, 0x7f},
{0x2204, 0xa8},
{0x2205, 0x8a},
{0x2206, 0x00},
{0x2207, 0x00},
{0x2208, 0x9c},
{0x2209, 0x60},
{0x220a, 0x20},
{0x220b, 0x00},
{0x220c, 0x9d},
{0x220d, 0x80},
{0x220e, 0x00},
{0x220f, 0x03},
{0x2210, 0x07},
{0x2211, 0xfb},
{0x2212, 0x77},
{0x2213, 0xf6},
{0x2214, 0x15},
{0x2215, 0x00},
{0x2216, 0x00},
{0x2217, 0x00},
{0x2218, 0x9c},
{0x2219, 0x60},
{0x221a, 0x00},
{0x221b, 0x20},
{0x221c, 0xe0},
{0x221d, 0x63},
{0x221e, 0x58},
{0x221f, 0x02},
{0x2220, 0xa5},
{0x2221, 0x43},
{0x2222, 0xff},
{0x2223, 0xff},
{0x2224, 0xbc},
{0x2225, 0xaa},
{0x2226, 0x00},
{0x2227, 0x0f},
{0x2228, 0x10},
{0x2229, 0x00},
{0x222a, 0x00},
{0x222b, 0x04},
{0x222c, 0x9c},
{0x222d, 0x6c},
{0x222e, 0x00},
{0x222f, 0x01},
{0x2230, 0x9d},
{0x2231, 0x40},
{0x2232, 0x00},
{0x2233, 0x00},
{0x2234, 0xa5},
{0x2235, 0x83},
{0x2236, 0xff},
{0x2237, 0xff},
{0x2238, 0x18},
{0x2239, 0x60},
{0x223a, 0x00},
{0x223b, 0x14},
{0x223c, 0xa8},
{0x223d, 0x63},
{0x223e, 0x5d},
{0x223f, 0x00},
{0x2240, 0x8c},
{0x2241, 0x63},
{0x2242, 0x00},
{0x2243, 0x00},
{0x2244, 0xbc},
{0x2245, 0x03},
{0x2246, 0x00},
{0x2247, 0x00},
{0x2248, 0x10},
{0x2249, 0x00},
{0x224a, 0x00},
{0x224b, 0x24},
{0x224c, 0x15},
{0x224d, 0x00},
{0x224e, 0x00},
{0x224f, 0x00},
{0x2250, 0x9c},
{0x2251, 0x60},
{0x2252, 0x30},
{0x2253, 0x96},
{0x2254, 0x9c},
{0x2255, 0x80},
{0x2256, 0x07},
{0x2257, 0x80},
{0x2258, 0x07},
{0x2259, 0xfb},
{0x225a, 0x17},
{0x225b, 0x2c},
{0x225c, 0x9c},
{0x225d, 0xa0},
{0x225e, 0x00},
{0x225f, 0x02},
{0x2260, 0x9c},
{0x2261, 0x60},
{0x2262, 0x30},
{0x2263, 0x98},
{0x2264, 0x9c},
{0x2265, 0x80},
{0x2266, 0x07},
{0x2267, 0x80},
{0x2268, 0x07},
{0x2269, 0xfb},
{0x226a, 0x17},
{0x226b, 0x28},
{0x226c, 0x9c},
{0x226d, 0xa0},
{0x226e, 0x00},
{0x226f, 0x02},
{0x2270, 0x9c},
{0x2271, 0x60},
{0x2272, 0x32},
{0x2273, 0x02},
{0x2274, 0x9c},
{0x2275, 0x80},
{0x2276, 0x00},
{0x2277, 0xb0},
{0x2278, 0x07},
{0x2279, 0xfb},
{0x227a, 0x17},
{0x227b, 0x24},
{0x227c, 0x9c},
{0x227d, 0xa0},
{0x227e, 0x00},
{0x227f, 0x02},
{0x2280, 0x9c},
{0x2281, 0x60},
{0x2282, 0x32},
{0x2283, 0x06},
{0x2284, 0x9c},
{0x2285, 0x80},
{0x2286, 0x1c},
{0x2287, 0x0e},
{0x2288, 0x07},
{0x2289, 0xfb},
{0x228a, 0x17},
{0x228b, 0x20},
{0x228c, 0x9c},
{0x228d, 0xa0},
{0x228e, 0x00},
{0x228f, 0x02},
{0x2290, 0x9c},
{0x2291, 0x60},
{0x2292, 0x32},
{0x2293, 0x08},
{0x2294, 0x00},
{0x2295, 0x00},
{0x2296, 0x00},
{0x2297, 0x29},
{0x2298, 0x9c},
{0x2299, 0x80},
{0x229a, 0x4e},
{0x229b, 0x39},
{0x229c, 0x0c},
{0x229d, 0x00},
{0x229e, 0x00},
{0x229f, 0x1f},
{0x22a0, 0xa8},
{0x22a1, 0x8a},
{0x22a2, 0x00},
{0x22a3, 0x00},
{0x22a4, 0xbc},
{0x22a5, 0xaa},
{0x22a6, 0x00},
{0x22a7, 0x3f},
{0x22a8, 0x10},
{0x22a9, 0x00},
{0x22aa, 0x00},
{0x22ab, 0x21},
{0x22ac, 0x15},
{0x22ad, 0x00},
{0x22ae, 0x00},
{0x22af, 0x00},
{0x22b0, 0x9c},
{0x22b1, 0x60},
{0x22b2, 0x08},
{0x22b3, 0x00},
{0x22b4, 0x03},
{0x22b5, 0xff},
{0x22b6, 0xff},
{0x22b7, 0xd7},
{0x22b8, 0x9d},
{0x22b9, 0x80},
{0x22ba, 0x00},
{0x22bb, 0x01},
{0x22bc, 0x0c},
{0x22bd, 0x00},
{0x22be, 0x00},
{0x22bf, 0x15},
{0x22c0, 0x9d},
{0x22c1, 0x80},
{0x22c2, 0x00},
{0x22c3, 0x01},
{0x22c4, 0xbc},
{0x22c5, 0x4a},
{0x22c6, 0x00},
{0x22c7, 0x51},
{0x22c8, 0x10},
{0x22c9, 0x00},
{0x22ca, 0x00},
{0x22cb, 0x17},
{0x22cc, 0xa8},
{0x22cd, 0x8a},
{0x22ce, 0x00},
{0x22cf, 0x00},
{0x22d0, 0x03},
{0x22d1, 0xff},
{0x22d2, 0xff},
{0x22d3, 0xa5},
{0x22d4, 0x9c},
{0x22d5, 0x60},
{0x22d6, 0x08},
{0x22d7, 0x00},
{0x22d8, 0x9c},
{0x22d9, 0x60},
{0x22da, 0x30},
{0x22db, 0x96},
{0x22dc, 0x9c},
{0x22dd, 0x80},
{0x22de, 0x00},
{0x22df, 0x80},
{0x22e0, 0x07},
{0x22e1, 0xfb},
{0x22e2, 0x17},
{0x22e3, 0x0a},
{0x22e4, 0x9c},
{0x22e5, 0xa0},
{0x22e6, 0x00},
{0x22e7, 0x02},
{0x22e8, 0x9c},
{0x22e9, 0x60},
{0x22ea, 0x30},
{0x22eb, 0x98},
{0x22ec, 0x03},
{0x22ed, 0xff},
{0x22ee, 0xff},
{0x22ef, 0xdf},
{0x22f0, 0x9c},
{0x22f1, 0x80},
{0x22f2, 0x00},
{0x22f3, 0x80},
{0x22f4, 0x9c},
{0x22f5, 0x60},
{0x22f6, 0x30},
{0x22f7, 0x96},
{0x22f8, 0x9c},
{0x22f9, 0x80},
{0x22fa, 0x00},
{0x22fb, 0x80},
{0x22fc, 0x07},
{0x22fd, 0xfb},
{0x22fe, 0x17},
{0x22ff, 0x03},
{0x2300, 0x9c},
{0x2301, 0xa0},
{0x2302, 0x00},
{0x2303, 0x02},
{0x2304, 0x9c},
{0x2305, 0x60},
{0x2306, 0x30},
{0x2307, 0x98},
{0x2308, 0x03},
{0x2309, 0xff},
{0x230a, 0xff},
{0x230b, 0xa8},
{0x230c, 0x9c},
{0x230d, 0x80},
{0x230e, 0x00},
{0x230f, 0x80},
{0x2310, 0x03},
{0x2311, 0xff},
{0x2312, 0xff},
{0x2313, 0x9a},
{0x2314, 0x9d},
{0x2315, 0x40},
{0x2316, 0x00},
{0x2317, 0x00},
{0x2318, 0x9c},
{0x2319, 0x60},
{0x231a, 0x10},
{0x231b, 0x00},
{0x231c, 0x03},
{0x231d, 0xff},
{0x231e, 0xff},
{0x231f, 0xbd},
{0x2320, 0x9d},
{0x2321, 0x80},
{0x2322, 0x00},
{0x2323, 0x02},
{0x2324, 0x03},
{0x2325, 0xff},
{0x2326, 0xff},
{0x2327, 0x95},
{0x2328, 0x9d},
{0x2329, 0x40},
{0x232a, 0x00},
{0x232b, 0x07},
{0x232c, 0x9c},
{0x232d, 0x60},
{0x232e, 0x04},
{0x232f, 0x00},
{0x2330, 0x03},
{0x2331, 0xff},
{0x2332, 0xff},
{0x2333, 0xb8},
{0x2334, 0x9d},
{0x2335, 0x80},
{0x2336, 0x00},
{0x2337, 0x00},
{0x2338, 0x07},
{0x2339, 0xfb},
{0x233a, 0x16},
{0x233b, 0xf4},
{0x233c, 0x9c},
{0x233d, 0xa0},
{0x233e, 0x00},
{0x233f, 0x02},
{0x2340, 0xb8},
{0x2341, 0x8c},
{0x2342, 0x00},
{0x2343, 0x04},
{0x2344, 0xa4},
{0x2345, 0xca},
{0x2346, 0x00},
{0x2347, 0x0f},
{0x2348, 0x9c},
{0x2349, 0x60},
{0x234a, 0x30},
{0x234b, 0x60},
{0x234c, 0xa4},
{0x234d, 0x84},
{0x234e, 0x00},
{0x234f, 0x70},
{0x2350, 0x9c},
{0x2351, 0xa0},
{0x2352, 0x00},
{0x2353, 0x02},
{0x2354, 0x07},
{0x2355, 0xfb},
{0x2356, 0x16},
{0x2357, 0xed},
{0x2358, 0xe0},
{0x2359, 0x84},
{0x235a, 0x30},
{0x235b, 0x00},
{0x235c, 0x85},
{0x235d, 0x21},
{0x235e, 0x00},
{0x235f, 0x00},
{0x2360, 0x85},
{0x2361, 0x41},
{0x2362, 0x00},
{0x2363, 0x04},
{0x2364, 0x85},
{0x2365, 0x81},
{0x2366, 0x00},
{0x2367, 0x08},
{0x2368, 0x44},
{0x2369, 0x00},
{0x236a, 0x48},
{0x236b, 0x00},
{0x236c, 0x9c},
{0x236d, 0x21},
{0x236e, 0x00},
{0x236f, 0x0c},
{0x2370, 0x9c},
{0x2371, 0x21},
{0x2372, 0xff},
{0x2373, 0xf8},
{0x2374, 0xd4},
{0x2375, 0x01},
{0x2376, 0x48},
{0x2377, 0x00},
{0x2378, 0xd4},
{0x2379, 0x01},
{0x237a, 0x50},
{0x237b, 0x04},
{0x237c, 0x07},
{0x237d, 0xfb},
{0x237e, 0x07},
{0x237f, 0x0f},
{0x2380, 0x15},
{0x2381, 0x00},
{0x2382, 0x00},
{0x2383, 0x00},
{0x2384, 0x85},
{0x2385, 0x4b},
{0x2386, 0x00},
{0x2387, 0x08},
{0x2388, 0x18},
{0x2389, 0xa0},
{0x238a, 0x00},
{0x238b, 0x14},
{0x238c, 0xa8},
{0x238d, 0xa5},
{0x238e, 0x5d},
{0x238f, 0x08},
{0x2390, 0x84},
{0x2391, 0x6a},
{0x2392, 0x01},
{0x2393, 0x08},
{0x2394, 0x84},
{0x2395, 0x8a},
{0x2396, 0x01},
{0x2397, 0x0c},
{0x2398, 0xb8},
{0x2399, 0xc3},
{0x239a, 0x00},
{0x239b, 0x44},
{0x239c, 0xb8},
{0x239d, 0x84},
{0x239e, 0x00},
{0x239f, 0x41},
{0x23a0, 0x84},
{0x23a1, 0xa5},
{0x23a2, 0x00},
{0x23a3, 0x00},
{0x23a4, 0x94},
{0x23a5, 0x6a},
{0x23a6, 0x01},
{0x23a7, 0x00},
{0x23a8, 0xe0},
{0x23a9, 0x84},
{0x23aa, 0x33},
{0x23ab, 0x06},
{0x23ac, 0x07},
{0x23ad, 0xfb},
{0x23ae, 0x77},
{0x23af, 0xa8},
{0x23b0, 0xe0},
{0x23b1, 0x63},
{0x23b2, 0x2b},
{0x23b3, 0x06},
{0x23b4, 0x18},
{0x23b5, 0x60},
{0x23b6, 0x00},
{0x23b7, 0x14},
{0x23b8, 0xa8},
{0x23b9, 0x63},
{0x23ba, 0x5d},
{0x23bb, 0x04},
{0x23bc, 0xd4},
{0x23bd, 0x03},
{0x23be, 0x58},
{0x23bf, 0x00},
{0x23c0, 0x18},
{0x23c1, 0x60},
{0x23c2, 0x00},
{0x23c3, 0x14},
{0x23c4, 0xa8},
{0x23c5, 0x63},
{0x23c6, 0x5d},
{0x23c7, 0x0c},
{0x23c8, 0x94},
{0x23c9, 0x63},
{0x23ca, 0x00},
{0x23cb, 0x00},
{0x23cc, 0xe4},
{0x23cd, 0xa3},
{0x23ce, 0x58},
{0x23cf, 0x00},
{0x23d0, 0x10},
{0x23d1, 0x00},
{0x23d2, 0x00},
{0x23d3, 0x05},
{0x23d4, 0x15},
{0x23d5, 0x00},
{0x23d6, 0x00},
{0x23d7, 0x00},
{0x23d8, 0x94},
{0x23d9, 0x6a},
{0x23da, 0x00},
{0x23db, 0x66},
{0x23dc, 0x00},
{0x23dd, 0x00},
{0x23de, 0x00},
{0x23df, 0x2a},
{0x23e0, 0xdc},
{0x23e1, 0x0a},
{0x23e2, 0x18},
{0x23e3, 0x54},
{0x23e4, 0x18},
{0x23e5, 0x60},
{0x23e6, 0x00},
{0x23e7, 0x14},
{0x23e8, 0xa8},
{0x23e9, 0x63},
{0x23ea, 0x5d},
{0x23eb, 0x0e},
{0x23ec, 0x94},
{0x23ed, 0x63},
{0x23ee, 0x00},
{0x23ef, 0x00},
{0x23f0, 0xe4},
{0x23f1, 0xa3},
{0x23f2, 0x58},
{0x23f3, 0x00},
{0x23f4, 0x10},
{0x23f5, 0x00},
{0x23f6, 0x00},
{0x23f7, 0x04},
{0x23f8, 0x15},
{0x23f9, 0x00},
{0x23fa, 0x00},
{0x23fb, 0x00},
{0x23fc, 0x03},
{0x23fd, 0xff},
{0x23fe, 0xff},
{0x23ff, 0xf8},
{0x2400, 0x94},
{0x2401, 0x6a},
{0x2402, 0x00},
{0x2403, 0x68},
{0x2404, 0x18},
{0x2405, 0x60},
{0x2406, 0x00},
{0x2407, 0x14},
{0x2408, 0xa8},
{0x2409, 0x63},
{0x240a, 0x5d},
{0x240b, 0x10},
{0x240c, 0x94},
{0x240d, 0x63},
{0x240e, 0x00},
{0x240f, 0x00},
{0x2410, 0xe4},
{0x2411, 0xa3},
{0x2412, 0x58},
{0x2413, 0x00},
{0x2414, 0x0c},
{0x2415, 0x00},
{0x2416, 0x00},
{0x2417, 0x0a},
{0x2418, 0x15},
{0x2419, 0x00},
{0x241a, 0x00},
{0x241b, 0x00},
{0x241c, 0x18},
{0x241d, 0x60},
{0x241e, 0x00},
{0x241f, 0x14},
{0x2420, 0xa8},
{0x2421, 0x63},
{0x2422, 0x5d},
{0x2423, 0x12},
{0x2424, 0x94},
{0x2425, 0x63},
{0x2426, 0x00},
{0x2427, 0x00},
{0x2428, 0xe4},
{0x2429, 0xa3},
{0x242a, 0x58},
{0x242b, 0x00},
{0x242c, 0x10},
{0x242d, 0x00},
{0x242e, 0x00},
{0x242f, 0x06},
{0x2430, 0x15},
{0x2431, 0x00},
{0x2432, 0x00},
{0x2433, 0x00},
{0x2434, 0x03},
{0x2435, 0xff},
{0x2436, 0xff},
{0x2437, 0xea},
{0x2438, 0x94},
{0x2439, 0x6a},
{0x243a, 0x00},
{0x243b, 0x6c},
{0x243c, 0x03},
{0x243d, 0xff},
{0x243e, 0xff},
{0x243f, 0xe8},
{0x2440, 0x94},
{0x2441, 0x6a},
{0x2442, 0x00},
{0x2443, 0x6a},
{0x2444, 0x18},
{0x2445, 0x60},
{0x2446, 0x00},
{0x2447, 0x14},
{0x2448, 0xa8},
{0x2449, 0x63},
{0x244a, 0x5d},
{0x244b, 0x14},
{0x244c, 0x94},
{0x244d, 0x63},
{0x244e, 0x00},
{0x244f, 0x00},
{0x2450, 0xe4},
{0x2451, 0xa3},
{0x2452, 0x58},
{0x2453, 0x00},
{0x2454, 0x0c},
{0x2455, 0x00},
{0x2456, 0x00},
{0x2457, 0x0a},
{0x2458, 0x15},
{0x2459, 0x00},
{0x245a, 0x00},
{0x245b, 0x00},
{0x245c, 0x18},
{0x245d, 0x60},
{0x245e, 0x00},
{0x245f, 0x14},
{0x2460, 0xa8},
{0x2461, 0x63},
{0x2462, 0x5d},
{0x2463, 0x16},
{0x2464, 0x94},
{0x2465, 0x63},
{0x2466, 0x00},
{0x2467, 0x00},
{0x2468, 0xe4},
{0x2469, 0xa3},
{0x246a, 0x58},
{0x246b, 0x00},
{0x246c, 0x10},
{0x246d, 0x00},
{0x246e, 0x00},
{0x246f, 0x06},
{0x2470, 0x15},
{0x2471, 0x00},
{0x2472, 0x00},
{0x2473, 0x00},
{0x2474, 0x03},
{0x2475, 0xff},
{0x2476, 0xff},
{0x2477, 0xda},
{0x2478, 0x94},
{0x2479, 0x6a},
{0x247a, 0x00},
{0x247b, 0x70},
{0x247c, 0x03},
{0x247d, 0xff},
{0x247e, 0xff},
{0x247f, 0xd8},
{0x2480, 0x94},
{0x2481, 0x6a},
{0x2482, 0x00},
{0x2483, 0x6e},
{0x2484, 0x85},
{0x2485, 0x21},
{0x2486, 0x00},
{0x2487, 0x00},
{0x2488, 0x85},
{0x2489, 0x41},
{0x248a, 0x00},
{0x248b, 0x04},
{0x248c, 0x44},
{0x248d, 0x00},
{0x248e, 0x48},
{0x248f, 0x00},
{0x2490, 0x9c},
{0x2491, 0x21},
{0x2492, 0x00},
{0x2493, 0x08},
{0x2494, 0x9c},
{0x2495, 0x21},
{0x2496, 0xff},
{0x2497, 0xfc},
{0x2498, 0xd4},
{0x2499, 0x01},
{0x249a, 0x48},
{0x249b, 0x00},
{0x249c, 0xbc},
{0x249d, 0x03},
{0x249e, 0x01},
{0x249f, 0x03},
{0x24a0, 0x10},
{0x24a1, 0x00},
{0x24a2, 0x00},
{0x24a3, 0x06},
{0x24a4, 0xbc},
{0x24a5, 0x03},
{0x24a6, 0x04},
{0x24a7, 0x0c},
{0x24a8, 0x0c},
{0x24a9, 0x00},
{0x24aa, 0x00},
{0x24ab, 0x10},
{0x24ac, 0x15},
{0x24ad, 0x00},
{0x24ae, 0x00},
{0x24af, 0x00},
{0x24b0, 0x00},
{0x24b1, 0x00},
{0x24b2, 0x00},
{0x24b3, 0x0c},
{0x24b4, 0x15},
{0x24b5, 0x00},
{0x24b6, 0x00},
{0x24b7, 0x00},
{0x24b8, 0x18},
{0x24b9, 0x60},
{0x24ba, 0x00},
{0x24bb, 0x14},
{0x24bc, 0xa8},
{0x24bd, 0x63},
{0x24be, 0x5d},
{0x24bf, 0x01},
{0x24c0, 0x8c},
{0x24c1, 0x63},
{0x24c2, 0x00},
{0x24c3, 0x00},
{0x24c4, 0xbc},
{0x24c5, 0x23},
{0x24c6, 0x00},
{0x24c7, 0x01},
{0x24c8, 0x10},
{0x24c9, 0x00},
{0x24ca, 0x00},
{0x24cb, 0x08},
{0x24cc, 0x15},
{0x24cd, 0x00},
{0x24ce, 0x00},
{0x24cf, 0x00},
{0x24d0, 0x07},
{0x24d1, 0xff},
{0x24d2, 0xff},
{0x24d3, 0xa8},
{0x24d4, 0x15},
{0x24d5, 0x00},
{0x24d6, 0x00},
{0x24d7, 0x00},
{0x24d8, 0x00},
{0x24d9, 0x00},
{0x24da, 0x00},
{0x24db, 0x04},
{0x24dc, 0x15},
{0x24dd, 0x00},
{0x24de, 0x00},
{0x24df, 0x00},
{0x24e0, 0x07},
{0x24e1, 0xff},
{0x24e2, 0xff},
{0x24e3, 0x0d},
{0x24e4, 0x15},
{0x24e5, 0x00},
{0x24e6, 0x00},
{0x24e7, 0x00},
{0x24e8, 0x85},
{0x24e9, 0x21},
{0x24ea, 0x00},
{0x24eb, 0x00},
{0x24ec, 0x44},
{0x24ed, 0x00},
{0x24ee, 0x48},
{0x24ef, 0x00},
{0x24f0, 0x9c},
{0x24f1, 0x21},
{0x24f2, 0x00},
{0x24f3, 0x04},
{0x24f4, 0x9c},
{0x24f5, 0x21},
{0x24f6, 0xff},
{0x24f7, 0xfc},
{0x24f8, 0xd4},
{0x24f9, 0x01},
{0x24fa, 0x48},
{0x24fb, 0x00},
{0x24fc, 0x07},
{0x24fd, 0xff},
{0x24fe, 0xff},
{0x24ff, 0xe6},
{0x2500, 0x15},
{0x2501, 0x00},
{0x2502, 0x00},
{0x2503, 0x00},
{0x2504, 0x9d},
{0x2505, 0x60},
{0x2506, 0x00},
{0x2507, 0x00},
{0x2508, 0x85},
{0x2509, 0x21},
{0x250a, 0x00},
{0x250b, 0x00},
{0x250c, 0x44},
{0x250d, 0x00},
{0x250e, 0x48},
{0x250f, 0x00},
{0x2510, 0x9c},
{0x2511, 0x21},
{0x2512, 0x00},
{0x2513, 0x04},
{0x2514, 0x00},
{0x2515, 0x00},
{0x2516, 0x00},
{0x2517, 0x00},
{0x2518, 0x00},
{0x2519, 0x00},
{0x251a, 0x00},
{0x251b, 0x00},
{0x251c, 0x00},
{0x251d, 0x00},
{0x251e, 0x00},
{0x251f, 0x00},
{0x2520, 0x00},
{0x2521, 0x00},
{0x2522, 0x00},
{0x2523, 0x00},
{0x2524, 0x00},
{0x2525, 0x00},
{0x2526, 0x00},
{0x2527, 0x00},
{0x2528, 0x00},
{0x2529, 0x00},
{0x252a, 0x00},
{0x252b, 0x00},

{0xfffe,0x14},
{0x5d00,0x01},
{0x5d01,0x01},
{0x5d08,0x00},
{0x5d09,0x00},
{0x5d0a,0x27},
{0x5d0b,0x10},

{0x5d0c,0x02}, //室内 0-32 对应 b2 b3
{0x5d0d,0x00},

{0x5d0e,0x04}, //室内 2-4 对应 b4 b5
{0x5d0f,0x00},

{0x5d10,0x08}, //逆光 4-7 对应 b6 b7
{0x5d11,0x00},

{0x5d12,0x20}, //室外+逆光 8-20 对应 b8 b9
{0x5d13,0x00},

{0x5d14,0xc0}, //室外 20-c0 对应 ba bb
{0x5d15,0x00},

{0x5d16,0xff},
{0x5d17,0x00}, //室外大太阳逆光 c0-ff 对应 bc bd

{0xfffe,0x50},
{0x0137,0x99},

//patch_end

//IQ_start
//AE
{0xfffe,0x30},
{0x1f00,0x00},
{0x1f01,0x00}, //win_Xstart
{0x1f02,0x00},
{0x1f03,0x00}, //win_Ystart
{0x1f04,0x07},
{0x1f05,0x80}, //win_width
{0x1f06,0x04},
{0x1f07,0x38}, //win_height
{0x1f08,0x03},
{0x0051,0x01},

{0xfffe,0x14},
{0x000e,0x00}, //isp0_used_i2c
{0x010e,0x20}, //sensor_i2c_id
{0x010f,0x01}, //sensor_i2c_bits
{0x0110,0x05}, //type_gain
{0x0111,0x02}, //type_exp

{0x0114,0x30}, //exp_addr
{0x0115,0x12},
{0x0116,0x30},
{0x0117,0x13},
{0x0118,0x00},
{0x0119,0x00},
{0x011a,0x00},
{0x011b,0x00},

{0x011c,0xff}, //exp_mask
{0x011d,0xff},
{0x011e,0xff},
{0x011f,0xff},
{0x0120,0x00},
{0x0121,0x00},
{0x0122,0x00},
{0x0123,0x00},

{0x0134,0x00}, //gain_addr
{0x0135,0x00},
{0x0136,0x30},
{0x0137,0x61},
{0x0138,0x00},
{0x0139,0x00},
{0x013a,0x00},
{0x013b,0x00},

{0x013c,0x00}, //gain_mask
{0x013d,0x00},
{0x013e,0xff},
{0x013f,0xff},
{0x0140,0x00},
{0x0141,0x00},
{0x0142,0x00},
{0x0143,0x00},

//Area Weight
{0xfffe,0x14},
{0x0055,0x10},
{0x0056,0x10},
{0x0057,0x10},
{0x0058,0x10},
{0x0059,0x10},

{0x005a,0x10},
{0x005b,0x10},
{0x005c,0x10},
{0x005d,0x10},
{0x005e,0x10},

{0x005f,0x10},
{0x0060,0x10},
{0x0061,0x10},
{0x0062,0x10},
{0x0063,0x10},

{0x0064,0x10},
{0x0065,0x10},
{0x0066,0x10},
{0x0067,0x10},
{0x0068,0x10},

{0x0069,0x10},
{0x006a,0x10},
{0x006b,0x10},
{0x006c,0x10},
{0x006d,0x10},

//Attention
{0x0088,0x00},
{0x0089,0x07},
{0x008a,0x39},
{0x008b,0xc0},
{0x0050,0x01}, //refresh

//AE base
{0xfffe,0x14},
{0x004c,0x00}, //AEC_mode
{0x004d,0x01}, //AE_force_write

{0x00a0,0x01},
{0x00a1,0xb0}, //day_target

{0x00de,0x00},
{0x00df,0x10}, //min_exp
{0x00e0,0x00},
{0x00e1,0x00},
{0x00e2,0x40},
{0x00e3,0x00}, //max_exp
{0x00fa,0x00},
{0x00fb,0x80}, //max_gain
{0x00fc,0x00},
{0x00fd,0x20}, //min_gain

{0x0104,0x00}, //flicker
{0x0105,0x01}, //min_flickerlines_en
{0x0106,0x11},
{0x0107,0xb0}, //60Hz
{0x0108,0x15},
{0x0109,0x30}, //50Hz

//AE speed
{0x00c6,0x01}, //delay_frame
{0x0144,0x00}, //exp_delay
{0x0145,0x00}, //gain_delay
{0x0031,0x01}, //exp_mode
{0x0032,0x01}, //gain_mode

{0x00c7,0x28}, //finally_thr
{0x00ca,0x00},
{0x00cb,0x60}, //thr_low
{0x00cc,0x00},
{0x00cd,0xa0}, //thr_high
{0x00ce,0x00},
{0x00cf,0x60}, //jump_thr
{0x00d4,0x00},
{0x00d5,0x80}, //jump_mutiple
{0x00d6,0x00},
{0x00d7,0x80}, //max_jump_ratio
{0x00d9,0x00}, //max_jump_cnt
{0x00da,0x00},
{0x00db,0x00}, //luma_diff_thr_low
{0x00dc,0x03},
{0x00dd,0x00}, //luma_diff_thr_high

{0x01bc,0x00},
{0x01bd,0x60}, //thr_l_all
{0x01be,0x00},
{0x01bf,0x40}, //thr_l_avg

{0x00c8,0x01}, //total_speed
{0x0208,0x02}, //limit_speed

//AE smart
{0x0092,0x00}, //smart_mode
{0x0093,0x00}, //analysis_mode
{0x0094,0x00}, //smart_speed_limit

{0x0095,0x00}, //PDFH_move_avg
{0x00ad,0x04}, //ATT_block_cnt
{0x01c0,0x06}, //PDFH_used_cnt

//table reftarget
{0x0022,0x1e}, //use_cur_fps

{0x01e4,0x00},
{0x01e5,0x00},
{0x01e6,0x0b},
{0x01e7,0x00}, //table0
{0x01e8,0x00},
{0x01e9,0x00},
{0x01ea,0x2c},
{0x01eb,0x00}, //table1
{0x01ec,0x00},
{0x01ed,0x00},
{0x01ee,0xb0},
{0x01ef,0x00}, //table2
{0x01f0,0x00},
{0x01f1,0x02},
{0x01f2,0xc0},
{0x01f3,0x00}, //table3
{0x01f4,0x00},
{0x01f5,0x0b},
{0x01f6,0x00},
{0x01f7,0x00}, //table4
{0x01f8,0x00},
{0x01f9,0x2c},
{0x01fa,0x00},
{0x01fb,0x00}, //table5

//reftarget
{0x00b2,0x01},
{0x00b3,0xa0}, //ref_target_table0
{0x00b4,0x01},
{0x00b5,0xa0}, //ref_target_table1
{0x00b6,0x02},
{0x00b7,0x00}, //ref_target_table2
{0x00b8,0x01},
{0x00b9,0xe0}, //ref_target_table3
{0x00ba,0x01},
{0x00bb,0xb0}, //ref_target_table4
{0x00bc,0x01},
{0x00bd,0xe0}, //ref_target_table5

{0x01cb,0x00}, //avg_thr_low
{0x01cc,0x60}, //avg_thr_high
{0x01cd,0x23}, //avg_affect_val

//over exposure offset
{0x01d6,0x10},
{0x01d7,0x0e},
{0x01d8,0x1e},
{0x01d9,0x2c},
{0x01da,0x30},
{0x01db,0x28},

//main bodyratio table
{0x01dc,0x40},
{0x01dd,0x30},
{0x01de,0x20},
{0x01df,0x10},
{0x01e0,0x00},
{0x01e1,0x00},

{0x01b0,0x40}, //PDFL_brighten_max
{0x01b1,0x25}, //variance_affect_val
{0x01b2,0x01},
{0x01b3,0x00}, //variance_thr_low
{0x01b4,0x08},
{0x01b5,0x00}, //variance_thr_high

{0x01c6,0x30}, //PDFL_target
{0x01c7,0x1f}, //PDFH_max
{0x01c9,0x01}, //PDFH_target
{0x01ca,0x80}, //over_exp_affect_val_1
{0x01d0,0x01}, //over_exp_ref
{0x01d1,0x60}, //over_exp_affect_val_0
{0x01d2,0x08}, //under_exp_affect_val
{0x021d,0x04}, //PDFH_brighten_thr
{0x01b7,0x00}, //bright_ratio_thr_low
{0x01b8,0x20}, //bright_ratio_thr_middle
{0x01b9,0x60}, //bright_ratio_thr_high
{0x01ba,0x10}, //bright_ratio_affect

{0x00a6,0x32}, //CDF_high
{0x00a7,0x20}, //CDF_low

{0x0168,0x00},
{0x0169,0x00}, //min_avg_thr
{0x016a,0x03},
{0x016b,0x00}, //max_avg_thr
{0x016c,0x00},
{0x016d,0xa0}, //min_ATT_thr
{0x016e,0x02},
{0x016f,0x80}, //max_ATT_thr
{0x01d3,0x00}, //ATT_limit_affect_val_low
{0x01d4,0x10}, //ATT_limit_affect_val_high
{0x01d5,0x10}, //global_limit_ratio

{0x1a74,0x01}, //AE_mutiple_frame
{0x1a75,0x00}, //AE_active_frame

//LENC
{0xfffe,0x30},
{0x03ca,0x0c}, //lenc_scale
{0x03cb,0xcc},
{0x03cc,0x16},
{0x03cd,0xc1},
{0x03ce,0x0c},
{0x03cf,0xcc},
{0x03d0,0x0b},
{0x03d1,0x60},

{0x000e,0x00},
{0x000f,0x00},
{0x0010,0x00},
{0x0011,0x00},
{0x0012,0x80}, //lenc_skip

{0xfffe,0x14},
{0x0928,0x00},
{0x0929,0x4f}, //Alight_CT_thr
{0x092a,0x00},
{0x092b,0x83}, //Clight_CT_thr
{0x092c,0x01},
{0x092d,0x01}, //Dlight_CT_thr

{0x06e5,0x3f}, //A_light
{0x06e6,0x3f},
{0x06e7,0x3f},
{0x06e8,0x3f},
{0x06e9,0x3f},
{0x06ea,0x3f},
{0x06eb,0x3f},
{0x06ec,0x3f},
{0x06ed,0x29},
{0x06ee,0x19},
{0x06ef,0x12},
{0x06f0,0x10},
{0x06f1,0x10},
{0x06f2,0x14},
{0x06f3,0x1e},
{0x06f4,0x33},
{0x06f5,0x0c},
{0x06f6,0x07},
{0x06f7,0x05},
{0x06f8,0x04},
{0x06f9,0x04},
{0x06fa,0x05},
{0x06fb,0x08},
{0x06fc,0x0f},
{0x06fd,0x06},
{0x06fe,0x03},
{0x06ff,0x01},
{0x0700,0x00},
{0x0701,0x00},
{0x0702,0x01},
{0x0703,0x04},
{0x0704,0x07},
{0x0705,0x05},
{0x0706,0x02},
{0x0707,0x00},
{0x0708,0x00},
{0x0709,0x00},
{0x070a,0x01},
{0x070b,0x03},
{0x070c,0x07},
{0x070d,0x07},
{0x070e,0x04},
{0x070f,0x03},
{0x0710,0x03},
{0x0711,0x03},
{0x0712,0x04},
{0x0713,0x05},
{0x0714,0x0a},
{0x0715,0x17},
{0x0716,0x0d},
{0x0717,0x0a},
{0x0718,0x09},
{0x0719,0x09},
{0x071a,0x0b},
{0x071b,0x10},
{0x071c,0x1d},
{0x071d,0x3f},
{0x071e,0x3f},
{0x071f,0x3b},
{0x0720,0x36},
{0x0721,0x37},
{0x0722,0x3f},
{0x0723,0x3f},
{0x0724,0x3f},
{0x0725,0x02},
{0x0726,0x09},
{0x0727,0x0c},
{0x0728,0x0d},
{0x0729,0x0b},
{0x072a,0x0b},
{0x072b,0x07},
{0x072c,0x0b},
{0x072d,0x0f},
{0x072e,0x13},
{0x072f,0x15},
{0x0730,0x15},
{0x0731,0x14},
{0x0732,0x10},
{0x0733,0x0c},
{0x0734,0x08},
{0x0735,0x15},
{0x0736,0x1a},
{0x0737,0x1b},
{0x0738,0x1b},
{0x0739,0x19},
{0x073a,0x17},
{0x073b,0x13},
{0x073c,0x0e},
{0x073d,0x17},
{0x073e,0x1c},
{0x073f,0x1f},
{0x0740,0x20},
{0x0741,0x1f},
{0x0742,0x1c},
{0x0743,0x18},
{0x0744,0x14},
{0x0745,0x17},
{0x0746,0x1b},
{0x0747,0x1f},
{0x0748,0x21},
{0x0749,0x21},
{0x074a,0x1f},
{0x074b,0x1a},
{0x074c,0x16},
{0x074d,0x13},
{0x074e,0x18},
{0x074f,0x1b},
{0x0750,0x1d},
{0x0751,0x1d},
{0x0752,0x1a},
{0x0753,0x17},
{0x0754,0x13},
{0x0755,0x0d},
{0x0756,0x13},
{0x0757,0x16},
{0x0758,0x17},
{0x0759,0x17},
{0x075a,0x14},
{0x075b,0x10},
{0x075c,0x0c},
{0x075d,0x07},
{0x075e,0x0b},
{0x075f,0x0d},
{0x0760,0x0e},
{0x0761,0x0d},
{0x0762,0x0b},
{0x0763,0x08},
{0x0764,0x07},
{0x0765,0x2f},
{0x0766,0x2a},
{0x0767,0x2c},
{0x0768,0x2d},
{0x0769,0x30},
{0x076a,0x32},
{0x076b,0x32},
{0x076c,0x31},
{0x076d,0x24},
{0x076e,0x24},
{0x076f,0x25},
{0x0770,0x26},
{0x0771,0x28},
{0x0772,0x2c},
{0x0773,0x31},
{0x0774,0x34},
{0x0775,0x22},
{0x0776,0x22},
{0x0777,0x22},
{0x0778,0x22},
{0x0779,0x24},
{0x077a,0x26},
{0x077b,0x29},
{0x077c,0x2d},
{0x077d,0x22},
{0x077e,0x21},
{0x077f,0x20},
{0x0780,0x20},
{0x0781,0x21},
{0x0782,0x23},
{0x0783,0x25},
{0x0784,0x26},
{0x0785,0x23},
{0x0786,0x22},
{0x0787,0x20},
{0x0788,0x20},
{0x0789,0x20},
{0x078a,0x21},
{0x078b,0x23},
{0x078c,0x24},
{0x078d,0x25},
{0x078e,0x23},
{0x078f,0x22},
{0x0790,0x21},
{0x0791,0x22},
{0x0792,0x22},
{0x0793,0x24},
{0x0794,0x25},
{0x0795,0x27},
{0x0796,0x26},
{0x0797,0x24},
{0x0798,0x24},
{0x0799,0x24},
{0x079a,0x25},
{0x079b,0x27},
{0x079c,0x29},
{0x079d,0x28},
{0x079e,0x28},
{0x079f,0x27},
{0x07a0,0x27},
{0x07a1,0x28},
{0x07a2,0x2a},
{0x07a3,0x2b},
{0x07a4,0x2e},

{0x07a5,0x3f}, //C_light
{0x07a6,0x3f},
{0x07a7,0x3f},
{0x07a8,0x3f},
{0x07a9,0x3f},
{0x07aa,0x3f},
{0x07ab,0x3f},
{0x07ac,0x3f},
{0x07ad,0x2a},
{0x07ae,0x19},
{0x07af,0x12},
{0x07b0,0x10},
{0x07b1,0x11},
{0x07b2,0x15},
{0x07b3,0x1f},
{0x07b4,0x35},
{0x07b5,0x0b},
{0x07b6,0x07},
{0x07b7,0x05},
{0x07b8,0x04},
{0x07b9,0x05},
{0x07ba,0x06},
{0x07bb,0x08},
{0x07bc,0x10},
{0x07bd,0x06},
{0x07be,0x03},
{0x07bf,0x01},
{0x07c0,0x00},
{0x07c1,0x00},
{0x07c2,0x01},
{0x07c3,0x04},
{0x07c4,0x07},
{0x07c5,0x04},
{0x07c6,0x02},
{0x07c7,0x00},
{0x07c8,0x00},
{0x07c9,0x00},
{0x07ca,0x01},
{0x07cb,0x03},
{0x07cc,0x07},
{0x07cd,0x07},
{0x07ce,0x04},
{0x07cf,0x03},
{0x07d0,0x02},
{0x07d1,0x02},
{0x07d2,0x03},
{0x07d3,0x05},
{0x07d4,0x09},
{0x07d5,0x16},
{0x07d6,0x0d},
{0x07d7,0x0a},
{0x07d8,0x09},
{0x07d9,0x09},
{0x07da,0x0b},
{0x07db,0x10},
{0x07dc,0x1c},
{0x07dd,0x3f},
{0x07de,0x3f},
{0x07df,0x39},
{0x07e0,0x34},
{0x07e1,0x36},
{0x07e2,0x3e},
{0x07e3,0x3f},
{0x07e4,0x3f},
{0x07e5,0x08},
{0x07e6,0x0c},
{0x07e7,0x0f},
{0x07e8,0x0f},
{0x07e9,0x0d},
{0x07ea,0x0b},
{0x07eb,0x0b},
{0x07ec,0x08},
{0x07ed,0x12},
{0x07ee,0x16},
{0x07ef,0x17},
{0x07f0,0x16},
{0x07f1,0x14},
{0x07f2,0x11},
{0x07f3,0x0c},
{0x07f4,0x09},
{0x07f5,0x19},
{0x07f6,0x1b},
{0x07f7,0x1d},
{0x07f8,0x1c},
{0x07f9,0x1a},
{0x07fa,0x17},
{0x07fb,0x14},
{0x07fc,0x0e},
{0x07fd,0x18},
{0x07fe,0x1d},
{0x07ff,0x1f},
{0x0800,0x20},
{0x0801,0x1f},
{0x0802,0x1c},
{0x0803,0x18},
{0x0804,0x14},
{0x0805,0x16},
{0x0806,0x1b},
{0x0807,0x1f},
{0x0808,0x21},
{0x0809,0x21},
{0x080a,0x1e},
{0x080b,0x1a},
{0x080c,0x16},
{0x080d,0x13},
{0x080e,0x18},
{0x080f,0x1b},
{0x0810,0x1c},
{0x0811,0x1c},
{0x0812,0x1a},
{0x0813,0x17},
{0x0814,0x13},
{0x0815,0x0f},
{0x0816,0x13},
{0x0817,0x16},
{0x0818,0x17},
{0x0819,0x17},
{0x081a,0x14},
{0x081b,0x11},
{0x081c,0x0d},
{0x081d,0x0a},
{0x081e,0x0d},
{0x081f,0x0f},
{0x0820,0x0f},
{0x0821,0x0d},
{0x0822,0x0b},
{0x0823,0x09},
{0x0824,0x09},
{0x0825,0x1b},
{0x0826,0x18},
{0x0827,0x1a},
{0x0828,0x1c},
{0x0829,0x1e},
{0x082a,0x1e},
{0x082b,0x1d},
{0x082c,0x1a},
{0x082d,0x16},
{0x082e,0x19},
{0x082f,0x1c},
{0x0830,0x1e},
{0x0831,0x20},
{0x0832,0x22},
{0x0833,0x23},
{0x0834,0x21},
{0x0835,0x1a},
{0x0836,0x1c},
{0x0837,0x1e},
{0x0838,0x1f},
{0x0839,0x21},
{0x083a,0x22},
{0x083b,0x23},
{0x083c,0x22},
{0x083d,0x1c},
{0x083e,0x1e},
{0x083f,0x1f},
{0x0840,0x20},
{0x0841,0x20},
{0x0842,0x21},
{0x0843,0x21},
{0x0844,0x1f},
{0x0845,0x1e},
{0x0846,0x1f},
{0x0847,0x20},
{0x0848,0x20},
{0x0849,0x20},
{0x084a,0x20},
{0x084b,0x20},
{0x084c,0x1d},
{0x084d,0x1d},
{0x084e,0x1e},
{0x084f,0x1f},
{0x0850,0x1f},
{0x0851,0x1f},
{0x0852,0x1f},
{0x0853,0x1e},
{0x0854,0x1d},
{0x0855,0x1b},
{0x0856,0x1c},
{0x0857,0x1d},
{0x0858,0x1d},
{0x0859,0x1d},
{0x085a,0x1e},
{0x085b,0x1d},
{0x085c,0x1b},
{0x085d,0x16},
{0x085e,0x16},
{0x085f,0x18},
{0x0860,0x19},
{0x0861,0x1a},
{0x0862,0x1a},
{0x0863,0x19},
{0x0864,0x19},

{0x0865,0x07}, //D_light
{0x0866,0x09},
{0x0867,0x0b},
{0x0868,0x0c},
{0x0869,0x0c},
{0x086a,0x0b},
{0x086b,0x08},
{0x086c,0x07},
{0x086d,0x09},
{0x086e,0x09},
{0x086f,0x08},
{0x0870,0x07},
{0x0871,0x07},
{0x0872,0x08},
{0x0873,0x09},
{0x0874,0x09},
{0x0875,0x05},
{0x0876,0x03},
{0x0877,0x02},
{0x0878,0x02},
{0x0879,0x02},
{0x087a,0x02},
{0x087b,0x04},
{0x087c,0x06},
{0x087d,0x02},
{0x087e,0x01},
{0x087f,0x00},
{0x0880,0x00},
{0x0881,0x00},
{0x0882,0x01},
{0x0883,0x01},
{0x0884,0x03},
{0x0885,0x02},
{0x0886,0x01},
{0x0887,0x00},
{0x0888,0x00},
{0x0889,0x00},
{0x088a,0x00},
{0x088b,0x01},
{0x088c,0x03},
{0x088d,0x03},
{0x088e,0x02},
{0x088f,0x01},
{0x0890,0x01},
{0x0891,0x01},
{0x0892,0x01},
{0x0893,0x02},
{0x0894,0x04},
{0x0895,0x08},
{0x0896,0x06},
{0x0897,0x06},
{0x0898,0x05},
{0x0899,0x06},
{0x089a,0x06},
{0x089b,0x07},
{0x089c,0x08},
{0x089d,0x08},
{0x089e,0x0b},
{0x089f,0x0d},
{0x08a0,0x0d},
{0x08a1,0x0d},
{0x08a2,0x0c},
{0x08a3,0x09},
{0x08a4,0x06},
{0x08a5,0x19},
{0x08a6,0x1f},
{0x08a7,0x22},
{0x08a8,0x21},
{0x08a9,0x22},
{0x08aa,0x26},
{0x08ab,0x26},
{0x08ac,0x21},
{0x08ad,0x1d},
{0x08ae,0x1c},
{0x08af,0x1d},
{0x08b0,0x20},
{0x08b1,0x23},
{0x08b2,0x28},
{0x08b3,0x2f},
{0x08b4,0x35},
{0x08b5,0x1d},
{0x08b6,0x1c},
{0x08b7,0x1d},
{0x08b8,0x1f},
{0x08b9,0x23},
{0x08ba,0x27},
{0x08bb,0x2d},
{0x08bc,0x32},
{0x08bd,0x23},
{0x08be,0x1f},
{0x08bf,0x1f},
{0x08c0,0x1f},
{0x08c1,0x20},
{0x08c2,0x23},
{0x08c3,0x26},
{0x08c4,0x2a},
{0x08c5,0x27},
{0x08c6,0x23},
{0x08c7,0x21},
{0x08c8,0x20},
{0x08c9,0x21},
{0x08ca,0x22},
{0x08cb,0x23},
{0x08cc,0x24},
{0x08cd,0x28},
{0x08ce,0x24},
{0x08cf,0x21},
{0x08d0,0x20},
{0x08d1,0x20},
{0x08d2,0x22},
{0x08d3,0x24},
{0x08d4,0x27},
{0x08d5,0x25},
{0x08d6,0x23},
{0x08d7,0x22},
{0x08d8,0x21},
{0x08d9,0x22},
{0x08da,0x25},
{0x08db,0x26},
{0x08dc,0x27},
{0x08dd,0x22},
{0x08de,0x23},
{0x08df,0x21},
{0x08e0,0x21},
{0x08e1,0x22},
{0x08e2,0x24},
{0x08e3,0x25},
{0x08e4,0x26},
{0x08e5,0x1f},
{0x08e6,0x25},
{0x08e7,0x23},
{0x08e8,0x22},
{0x08e9,0x20},
{0x08ea,0x21},
{0x08eb,0x1f},
{0x08ec,0x19},
{0x08ed,0x2d},
{0x08ee,0x28},
{0x08ef,0x24},
{0x08f0,0x21},
{0x08f1,0x1f},
{0x08f2,0x1e},
{0x08f3,0x1e},
{0x08f4,0x1f},
{0x08f5,0x2b},
{0x08f6,0x27},
{0x08f7,0x23},
{0x08f8,0x21},
{0x08f9,0x1e},
{0x08fa,0x1e},
{0x08fb,0x1e},
{0x08fc,0x20},
{0x08fd,0x26},
{0x08fe,0x23},
{0x08ff,0x21},
{0x0900,0x20},
{0x0901,0x1f},
{0x0902,0x1f},
{0x0903,0x20},
{0x0904,0x24},
{0x0905,0x23},
{0x0906,0x22},
{0x0907,0x21},
{0x0908,0x20},
{0x0909,0x20},
{0x090a,0x21},
{0x090b,0x23},
{0x090c,0x27},
{0x090d,0x27},
{0x090e,0x24},
{0x090f,0x22},
{0x0910,0x22},
{0x0911,0x21},
{0x0912,0x23},
{0x0913,0x25},
{0x0914,0x2b},
{0x0915,0x28},
{0x0916,0x28},
{0x0917,0x26},
{0x0918,0x25},
{0x0919,0x24},
{0x091a,0x25},
{0x091b,0x27},
{0x091c,0x29},
{0x091d,0x28},
{0x091e,0x26},
{0x091f,0x25},
{0x0920,0x24},
{0x0921,0x24},
{0x0922,0x23},
{0x0923,0x26},
{0x0924,0x24},

{0xfffe,0x30},
{0x03c2,0x48}, //min_q
{0x03c3,0x48}, //max_q
{0x03c4,0x07}, //lenc_ctrl
{0x03c6,0x02},
{0x03c7,0x00}, //autoG_max_gain
{0x03c8,0x00},
{0x03c9,0x20}, //autoG_min_gain

//BLC
{0xfffe,0x30},
{0x0013,0x00},
{0x0014,0x00},
{0x071b,0x00},

//AWB
{0xfffe,0x14},
{0x0248,0x01}, //AWB_mode
{0x0249,0x01}, //AWB_fleximap_en
{0x027a,0x00},
{0x027b,0x10}, //min_num
{0x027c,0x0f},
{0x027d,0xff}, //max_awb_gain
{0x027e,0x04}, //awb_step
{0x027f,0x80}, //max_step_value

{0x02b6,0x06},
{0x02b7,0x00}, //B_temp
{0x02ba,0x04},
{0x02bb,0x00}, //G_temp
{0x02be,0x04},
{0x02bf,0x00}, //R_temp

{0x024a,0x02}, //awb_move_en
{0x024e,0x00},
{0x024f,0x20}, //D65:B_offset
{0x0252,0x00},
{0x0253,0x00}, //D65:R_offset
{0x0256,0x00},
{0x0257,0x00}, //CWF:B_offset
{0x025a,0x00},
{0x025b,0x00}, //CWF:R_offset
{0x025e,0x00},
{0x025f,0x00}, //A:B_offset
{0x0262,0x00},
{0x0263,0x00}, //A:R_offset
{0x0264,0x00},
{0x0265,0x38}, //awb_color0
{0x0266,0x00},
{0x0267,0x61}, //awb_color1
{0x0268,0x00},
{0x0269,0xd0}, //awb_color2
{0x026a,0xa0}, //awb_shift_R
{0x026b,0x90}, //awb_shift_B

{0xfffe,0x30},
{0x0708,0x02},
{0x0709,0xa0}, //pixel_max_value
{0x070a,0x00},
{0x070b,0x10}, //pixel_min_value

{0xfffe,0x30},
{0x0730,0x9a},
{0x0731,0xbe},
{0x0732,0x30},
{0x0733,0x40},
{0x0734,0x90},
{0x0735,0xaa},
{0x0736,0x3e},
{0x0737,0x5e},
{0x0738,0x51},
{0x0739,0x6e},
{0x073a,0x4a},
{0x073b,0x66},
{0x073c,0x60},
{0x073d,0x7a},
{0x073e,0x5a},
{0x073f,0x73},
{0x0740,0x50},
{0x0741,0x62},
{0x0742,0x5c},
{0x0743,0x80},
{0x0744,0x77},
{0x0745,0x92},
{0x0746,0x5d},
{0x0747,0x6f},
{0x0748,0x44},
{0x0749,0x55},
{0x074a,0x49},
{0x074b,0x7e},
{0x074c,0x64},
{0x074d,0x91},
{0x074e,0x4b},
{0x074f,0x60},
{0x0750,0x00},
{0x0751,0x00},
{0x0752,0x00},
{0x0753,0x00},
{0x0754,0x00},
{0x0755,0x00},
{0x0756,0x00},
{0x0757,0x00},
{0x0758,0x00},
{0x0759,0x00},
{0x075a,0x00},
{0x075b,0x00},
{0x075c,0x00},
{0x075d,0x00},
{0x075e,0x00},
{0x075f,0x00},
{0x0760,0x00},
{0x0761,0x00},
{0x0762,0x00},
{0x0763,0x00},
{0x0764,0x00},
{0x0765,0x00},
{0x0766,0x00},
{0x0767,0x00},
{0x0768,0x00},
{0x0769,0x00},
{0x076a,0x00},
{0x076b,0x00},
{0x076c,0x00},
{0x076d,0x00},
{0x076e,0x00},
{0x076f,0x00},
{0x0770,0x22},
{0x0771,0x21},
{0x0772,0x11},
{0x0773,0x11},
{0x0774,0x00},
{0x0775,0x00},
{0x0776,0x00},
{0x0777,0x00},

//RAW Gamma
{0xfffe,0x30},
{0x0901,0x02},
{0x0902,0x05},
{0x0903,0x0a},
{0x0904,0x14},
{0x0905,0x19},
{0x0906,0x1e},
{0x0907,0x24},
{0x0908,0x29},
{0x0909,0x2f},
{0x090a,0x36},
{0x090b,0x43},
{0x090c,0x51},
{0x090d,0x70},
{0x090e,0x90},
{0x090f,0xb2},
{0x0910,0x0f},

//RGB Gamma
{0xfffe,0x30},
{0x1400,0x00},
{0x1401,0x03},
{0x1402,0x06},
{0x1403,0x09},
{0x1404,0x0c},
{0x1405,0x0f},
{0x1406,0x12},
{0x1407,0x15},
{0x1408,0x18},
{0x1409,0x1b},
{0x140a,0x1f},
{0x140b,0x22},
{0x140c,0x25},
{0x140d,0x28},
{0x140e,0x2c},
{0x140f,0x30},
{0x1410,0x33},
{0x1411,0x37},
{0x1412,0x3b},
{0x1413,0x3f},
{0x1414,0x43},
{0x1415,0x47},
{0x1416,0x4b},
{0x1417,0x4f},
{0x1418,0x52},
{0x1419,0x56},
{0x141a,0x5a},
{0x141b,0x5e},
{0x141c,0x61},
{0x141d,0x65},
{0x141e,0x68},
{0x141f,0x6c},
{0x1420,0x70},
{0x1421,0x77},
{0x1422,0x7d},
{0x1423,0x84},
{0x1424,0x8b},
{0x1425,0x91},
{0x1426,0x97},
{0x1427,0x9c},
{0x1428,0xa1},
{0x1429,0xa5},
{0x142a,0xa9},
{0x142b,0xad},
{0x142c,0xb0},
{0x142d,0xb4},
{0x142e,0xb6},
{0x142f,0xb9},
{0x1430,0xbc},
{0x1431,0xc1},
{0x1432,0xc5},
{0x1433,0xca},
{0x1434,0xce},
{0x1435,0xd2},
{0x1436,0xd6},
{0x1437,0xda},
{0x1438,0xde},
{0x1439,0xe2},
{0x143a,0xe6},
{0x143b,0xea},
{0x143c,0xee},
{0x143d,0xf2},
{0x143e,0xf6},
{0x143f,0xfb},
{0x1440,0xff},

{0x1450,0xff},
{0x1451,0x03},
{0x1452,0x70},
{0x1453,0x30},

//CMX
{0xfffe,0x30},
{0x1200,0x01},
{0x1201,0xBA},
{0x1202,0x00},
{0x1203,0x2F},
{0x1204,0x00},
{0x1205,0x87},
{0x1206,0x01},
{0x1207,0x13},
{0x1208,0x00},
{0x1209,0xaF},
{0x120a,0x03},
{0x120b,0x22},
{0x120c,0x06},
{0x120d,0xC8},
{0x120e,0x00},
{0x120f,0xBB},
{0x1210,0x02},
{0x1211,0xD2},
{0x1212,0x01},
{0x1213,0xC7},
{0x1214,0x00},
{0x1215,0xE0},
{0x1216,0x01},
{0x1217,0x4B},
{0x1218,0x03},
{0x1219,0x4C},
{0x121a,0x00},
{0x121b,0x34},
{0x121c,0x00},
{0x121d,0x17},
{0x121e,0x02},
{0x121f,0x1B},
{0x1220,0x00},
{0x1221,0x4D},
{0x1222,0x03},
{0x1223,0x9C},
{0x122e,0x18},
{0x122f,0x0A},
{0x1230,0x02},
{0x1228,0x00},
{0x1229,0x7C},
{0x122a,0x00},
{0x122b,0xD9},
{0x122c,0x01},
{0x122d,0x8E},

{0x1231,0x03}, //cmx_ctrl
{0x1232,0x48},
{0x1233,0x30},
{0x1234,0x07},
{0x1235,0x0f},

//advance_raw_dns
{0xfffe,0x30},
{0x2000,0x0a}, //s0_sigma_0
{0x2001,0x0f},
{0x2002,0x16},
{0x2003,0x18},
{0x2004,0x1a},
{0x2005,0x1a},

{0x2006,0x18}, //s0_Gsl_0
{0x2007,0x12},
{0x2008,0x10},
{0x2009,0x06},
{0x200a,0x01},
{0x200b,0x01},

{0x200c,0x10}, //s0_RBsl_0
{0x200d,0x0e},
{0x200e,0x0a},
{0x200f,0x06},
{0x2010,0x01},
{0x2011,0x01},

{0x2012,0x28}, //s0_ps00
{0x2013,0x2a},
{0x2014,0x2e},
{0x2015,0x20},
{0x2016,0x24},
{0x2017,0x28},

{0x2018,0x20}, //s0_ps10
{0x2019,0x24},
{0x201a,0x28},
{0x201b,0x2c},
{0x201c,0x30},
{0x201d,0x34},

{0x201e,0x2c}, //s0_ps20
{0x201f,0x28},
{0x2020,0x30},
{0x2021,0x20},
{0x2022,0x30},
{0x2023,0x34},

{0x2024,0x10}, //s0_ps30
{0x2025,0x2c},
{0x2026,0x30},
{0x2027,0x24},
{0x2028,0x30},
{0x2029,0x34},

{0x202a,0x20}, //s0_pl00
{0x202b,0x20},
{0x202c,0x20},
{0x202d,0x20},
{0x202e,0x20},
{0x202f,0x20},

{0x2030,0x20}, //s0_pl10
{0x2031,0x20},
{0x2032,0x20},
{0x2033,0x20},
{0x2034,0x20},
{0x2035,0x20},

{0x2036,0x20}, //s0_pl20
{0x2037,0x20},
{0x2038,0x20},
{0x2039,0x20},
{0x203a,0x20},
{0x203b,0x20},

{0x203c,0x20}, //s0_pl30
{0x203d,0x20},
{0x203e,0x20},
{0x203f,0x20},
{0x2040,0x20},
{0x2041,0x20},

{0x2044,0x10}, //thre_y

//UV_dns
{0xfffe,0x30},
{0x2100,0x01}, //l_noise_list0
{0x2101,0x01},
{0x2102,0x01},
{0x2103,0x01},
{0x2104,0x3f},
{0x2105,0x4f},
{0x2106,0x5f}, //uv_dns_ctrl
{0x2107,0x08}, //noise_man_value

//CIP
{0xfffe,0x30},
{0x0f00,0x4f}, //bit[7:4] noise_y_slp bit[3:0] Lsharp
{0x0f02,0x00}, //noise_list0
{0x0f03,0x00},
{0x0f04,0x00},
{0x0f05,0x00},
{0x0f06,0x00},
{0x0f07,0x00},
{0x0f08,0x00},
{0x0f09,0x00},
{0x0f0a,0x02}, //min_shp
{0x0f0b,0x2f}, //max_shp
{0x0f0c,0x01}, //min_detail
{0x0f0d,0x03}, //max_detail
{0x0f0e,0x06}, //min_shp_gain
{0x0f0f,0x0c}, //max_shp_gain
{0x0f10,0x20},

//WDR
{0xfffe,0x30},
{0x2b04,0x08}, //sat_factor
{0x2b16,0x04}, //wdr_ctrl

{0xfffe,0x14},
{0x09ab,0x02}, //Gmax
{0x09ac,0x08},
{0x09ad,0xb4}, //map_rang
{0x09ae,0x41}, //PDF64_num_thd
{0x09af,0xff}, //gray_high
{0x09b2,0x02},
{0x09b3,0x00}, //gain_thd
{0x09b4,0x10}, //ext_ratio
{0x09b5,0x14}, //ext_ratio_max
{0x09b6,0x00}, //weak_adj_on

{0xfffe,0x30},
{0x2b9a,0x00},
{0x2b9b,0x00}, //gain_list0
{0x2b9c,0x10},
{0x2b9d,0x00},
{0x2b9e,0x20},
{0x2b9f,0x00},
{0x2ba0,0x40},
{0x2ba1,0x00},
{0x2ba2,0x70},
{0x2ba3,0x00},
{0x2ba4,0xa0},
{0x2ba5,0x00},
{0x2ba6,0xd0},
{0x2ba7,0x00},
{0x2ba8,0x00},
{0x2ba9,0x01},
{0x2bac,0x18}, //thd0
{0x2bad,0x18},
{0x2bae,0x1a},
{0x2baf,0x1a},
{0x2bb0,0x1b},
{0x2bb1,0x1b},
{0x2bb2,0x1d},
{0x2bb3,0x20},
{0x2bb4,0x7f}, //thd0_max
{0x2bb5,0x7f},
{0x2bb6,0x7f},
{0x2bb7,0x7f},
{0x2bb8,0x7f},
{0x2bb9,0x7f},
{0x2bba,0x7f},
{0x2bbb,0x7f},
{0x2bbc,0x24}, //enhance_ratio0
{0x2bbd,0x24},
{0x2bbe,0x20},
{0x2bbf,0x12},
{0x2bc0,0x0e},
{0x2bc1,0x0e},
{0x2bc2,0x0c},
{0x2bc3,0x0c},

//Auto_Sat
{0xfffe,0x14},
{0x026c,0x00}, //auto_sat_enable
{0x026d,0x20},
{0x026e,0x50}, //sat_U0
{0x026f,0x40},
{0x0270,0x40},
{0x0271,0x30},
{0x0272,0x30},
{0x0273,0x30},
{0x0274,0x50}, //sat_V0
{0x0275,0x3a},
{0x0276,0x3a},
{0x0277,0x2a},
{0x0278,0x2a},
{0x0279,0x2a},

//TOP
{0xfffe,0x14},
{0x002b,0x01}, //AE_enable
{0x002c,0x01}, //awb_enable
{0x002f,0x01}, //wdr_enable
{0x0030,0x01}, //lenc_enable
{0x0620,0x01},
{0x0621,0x01},

{0xfffe,0x30},
{0x0000,0x47},
{0x0001,0x92},
{0x0002,0x16},
{0x0003,0x35},
{0x0004,0x10}, //0x90
{0x2300,0x0a},

{0x0019,0x08},
{0x071c,0x0a},
{0x1700,0x09},
{0x1701,0x38},
{0x1702,0x30},
{0x1704,0x23}, //contrast_ygain
{0x1707,0x00}, //ybright

//IQ_end

//0xfffe,0x50,
//0x001a,0x08,
//0x001a,0x00,
};


const  regval_list XC7022_1080_Init_IQ_regs[] = {

{0xfffd,0x80},
{0xfffe,0x50},
{0x001c,0xff},
{0x001d,0xff},
{0x001e,0xff},
{0x001f,0xff}, //clk_en
{0x0018,0x00},
{0x0019,0x00},
{0x001a,0x00},
{0x001b,0x00}, //reset

{0x0030,0x44},
{0x0031,0x91},
{0x0032,0x43},
{0x0033,0x70},

{0x0020,0x02},
{0x0021,0x0d},
{0x0022,0x01},
{0x0023,0x85},
{0x0024,0x03},
{0x0025,0x06},
{0x0026,0x01},
{0x0027,0x06},
{0x0028,0x01},
{0x0029,0x00},
{0x002a,0x01},
{0x002b,0x05},
{0x002e,0x02}, //PLL

{0xfffe,0x50},
{0x0050,0x02},
{0x0054,0x02},
{0x0058,0x02}, //GPIO_Ctr

{0xfffe,0x50},
{0x00bc,0x19},
{0x0090,0x38},

{0x0200,0x0f}, //mipi_rx1_pad
{0x0201,0x00},
{0x0202,0x80},
{0x0203,0x01},

{0xfffe,0x26},
{0x8000,0x1d}, //colorbar
{0x8001,0x80},
{0x8002,0x07},
{0x8003,0x38},
{0x8004,0x04},
{0x8005,0x03},
{0x8006,0x05},
{0x8007,0x99},
{0x8008,0x14},
{0x8009,0x04},

{0xfffe,0x26},
{0x8010,0x05}, //before_isp_crop
{0x8012,0x80},
{0x8013,0x07},
{0x8014,0x38},
{0x8015,0x04},
{0x8016,0x00},
{0x8017,0x00},
{0x8018,0x01},
{0x8019,0x00},

{0xfffe,0x30},
{0x0000,0x01}, //isp0_set
{0x0001,0x00},
{0x0002,0x10},
{0x0003,0x20},
{0x0004,0x10},
{0x0019,0x08},
{0x0050,0x20}, //dummy_line

{0x005e,0x7F},
{0x005f,0x07},
{0x0060,0x37},
{0x0061,0x04},
{0x0064,0x80},
{0x0065,0x07},
{0x0066,0x38},
{0x0067,0x04},

{0x0006,0x07},
{0x0007,0x80},
{0x0008,0x04},
{0x0009,0x38},
{0x000a,0x07},
{0x000b,0x80},
{0x000c,0x04},
{0x000d,0x38},

{0x001e,0x07}, //isp_scale
{0x001f,0x80},
{0x0020,0x04},
{0x0021,0x38},

{0x007e,0x07},
{0x007f,0x80},
{0x0080,0x04},
{0x0081,0x38},
{0x0082,0x00},

{0xfffe,0x30},
{0x1a00,0x00}, //isp_crop
{0x1a01,0x00},
{0x1a02,0x00},
{0x1a03,0x00},
{0x1a04,0x07},
{0x1a05,0x80},
{0x1a06,0x04},
{0x1a07,0x38},
{0x1a08,0x00},

{0xfffe,0x26},
{0x0000,0x20}, //mipi_rx_lane
{0x0009,0xc4}, //mipi_rx_set

{0xfffe,0x26},
{0x2019,0x07}, //mipi_tx
{0x201a,0x80},
{0x201b,0x04},
{0x201c,0x38},
{0x201d,0x00},
{0x201e,0x00},
{0x201f,0x00},
{0x2020,0x00},

{0x2015,0x80},
{0x2017,0x1e},
{0x2018,0x00},
{0x2023,0x03}, //mipi_tx_set

{0xfffe,0x2c},
{0x0000,0x00}, //stitch
{0x0008,0x10},

{0x0044,0x08}, //fifo
{0x0045,0x04},
{0x0048,0x0E},
{0x0049,0xF0},

{0xfffe,0x2e},
{0x0000,0x00}, //retiming
{0x0001,0xcc},
{0x0002,0x00},
{0x0003,0x01},
{0x0004,0xe0},

{0xfffe,0x30},
{0x006c,0x80}, //pixel_order
{0x1800,0x10},

{0xfffe,0x50},
{0x0226,0x02}, //rx2_off

{0xfffe,0x25},
{0x0002,0xf0}, //i2c_master_speed

{0xfffe,0x2d},
{0x0000,0x88}, //hispi_set
{0x0001,0x88},
{0x0002,0x0c},
{0x0003,0x39},
{0x0004,0x04},
{0x0005,0x80},
{0x0006,0x07},
{0x0007,0x00},
{0x0008,0x0f},
{0x0009,0x10},
{0x000a,0x00},
{0x0013,0xc0},
{0x0014,0x80},
{0x0015,0xe0},
{0x0016,0xa0},
{0x1000,0x88},
{0x1001,0x88},
{0x1002,0x0c},
{0x1003,0x38},
{0x1004,0x04},
{0x1005,0x80},
{0x1006,0x07},
{0x1007,0x10},
{0x1008,0x00},
{0x1009,0x10},
{0x100a,0x00},
{0x1013,0xc0},
{0x1014,0x80},
{0x1015,0xe0},
{0x1016,0xa0},
{0x000b,0x80},
{0x100b,0x80},
{0x000b,0x00},
{0x100b,0x00},

//Initial_end

//patch_start
//以下patch setting需根据实际需求或先前参数添加进来
{0xfffd, 0x80},
{0xfffe, 0x50},
{0x000e, 0x54},
{0xfffe, 0x14},
{0x0006, 0x09},
{0x0007, 0x44},
{0x0014, 0x00},
{0x0015, 0x14},
{0x0016, 0x24},
{0x0017, 0xf4},
{0x2114, 0x9c},
{0x2115, 0x21},
{0x2116, 0xff},
{0x2117, 0xf4},
{0x2118, 0xd4},
{0x2119, 0x01},
{0x211a, 0x48},
{0x211b, 0x00},
{0x211c, 0xd4},
{0x211d, 0x01},
{0x211e, 0x50},
{0x211f, 0x04},
{0x2120, 0xd4},
{0x2121, 0x01},
{0x2122, 0x60},
{0x2123, 0x08},
{0x2124, 0x07},
{0x2125, 0xfb},
{0x2126, 0x07},
{0x2127, 0xa5},
{0x2128, 0x15},
{0x2129, 0x00},
{0x212a, 0x00},
{0x212b, 0x00},
{0x212c, 0x84},
{0x212d, 0x6b},
{0x212e, 0x00},
{0x212f, 0x08},
{0x2130, 0x95},
{0x2131, 0x43},
{0x2132, 0x01},
{0x2133, 0x0e},
{0x2134, 0xbc},
{0x2135, 0x4a},
{0x2136, 0x00},
{0x2137, 0x55},
{0x2138, 0x10},
{0x2139, 0x00},
{0x213a, 0x00},
{0x213b, 0x29},
{0x213c, 0x9c},
{0x213d, 0x60},
{0x213e, 0x31},
{0x213f, 0x00},
{0x2140, 0x9c},
{0x2141, 0x80},
{0x2142, 0x00},
{0x2143, 0x00},
{0x2144, 0x07},
{0x2145, 0xfb},
{0x2146, 0x17},
{0x2147, 0x71},
{0x2148, 0x9c},
{0x2149, 0xa0},
{0x214a, 0x00},
{0x214b, 0x02},
{0x214c, 0xbc},
{0x214d, 0x4a},
{0x214e, 0x00},
{0x214f, 0x3c},
{0x2150, 0x10},
{0x2151, 0x00},
{0x2152, 0x00},
{0x2153, 0x5b},
{0x2154, 0xbc},
{0x2155, 0x4a},
{0x2156, 0x00},
{0x2157, 0x3f},
{0x2158, 0xa8},
{0x2159, 0x8a},
{0x215a, 0x00},
{0x215b, 0x00},
{0x215c, 0x9c},
{0x215d, 0x60},
{0x215e, 0x04},
{0x215f, 0x00},
{0x2160, 0x9d},
{0x2161, 0x80},
{0x2162, 0x00},
{0x2163, 0x00},
{0x2164, 0x07},
{0x2165, 0xfb},
{0x2166, 0x78},
{0x2167, 0x21},
{0x2168, 0x15},
{0x2169, 0x00},
{0x216a, 0x00},
{0x216b, 0x00},
{0x216c, 0x9c},
{0x216d, 0x60},
{0x216e, 0x00},
{0x216f, 0x20},
{0x2170, 0xe0},
{0x2171, 0x63},
{0x2172, 0x58},
{0x2173, 0x02},
{0x2174, 0xa5},
{0x2175, 0x43},
{0x2176, 0xff},
{0x2177, 0xff},
{0x2178, 0x18},
{0x2179, 0x60},
{0x217a, 0x00},
{0x217b, 0x14},
{0x217c, 0xa8},
{0x217d, 0x63},
{0x217e, 0x5d},
{0x217f, 0x00},
{0x2180, 0x8c},
{0x2181, 0x63},
{0x2182, 0x00},
{0x2183, 0x00},
{0x2184, 0xbc},
{0x2185, 0x03},
{0x2186, 0x00},
{0x2187, 0x00},
{0x2188, 0x10},
{0x2189, 0x00},
{0x218a, 0x00},
{0x218b, 0x5b},
{0x218c, 0x15},
{0x218d, 0x00},
{0x218e, 0x00},
{0x218f, 0x00},
{0x2190, 0x9c},
{0x2191, 0x60},
{0x2192, 0x30},
{0x2193, 0x96},
{0x2194, 0x9c},
{0x2195, 0x80},
{0x2196, 0x04},
{0x2197, 0x80},
{0x2198, 0x07},
{0x2199, 0xfb},
{0x219a, 0x17},
{0x219b, 0x5c},
{0x219c, 0x9c},
{0x219d, 0xa0},
{0x219e, 0x00},
{0x219f, 0x02},
{0x21a0, 0x9c},
{0x21a1, 0x60},
{0x21a2, 0x30},
{0x21a3, 0x98},
{0x21a4, 0x9c},
{0x21a5, 0x80},
{0x21a6, 0x04},
{0x21a7, 0x80},
{0x21a8, 0x07},
{0x21a9, 0xfb},
{0x21aa, 0x17},
{0x21ab, 0x58},
{0x21ac, 0x9c},
{0x21ad, 0xa0},
{0x21ae, 0x00},
{0x21af, 0x02},
{0x21b0, 0x9c},
{0x21b1, 0x60},
{0x21b2, 0x32},
{0x21b3, 0x02},
{0x21b4, 0x9c},
{0x21b5, 0x80},
{0x21b6, 0x00},
{0x21b7, 0x80},
{0x21b8, 0x07},
{0x21b9, 0xfb},
{0x21ba, 0x17},
{0x21bb, 0x54},
{0x21bc, 0x9c},
{0x21bd, 0xa0},
{0x21be, 0x00},
{0x21bf, 0x02},
{0x21c0, 0x9c},
{0x21c1, 0x60},
{0x21c2, 0x32},
{0x21c3, 0x06},
{0x21c4, 0x9c},
{0x21c5, 0x80},
{0x21c6, 0x0b},
{0x21c7, 0x08},
{0x21c8, 0x07},
{0x21c9, 0xfb},
{0x21ca, 0x17},
{0x21cb, 0x50},
{0x21cc, 0x9c},
{0x21cd, 0xa0},
{0x21ce, 0x00},
{0x21cf, 0x02},
{0x21d0, 0x9c},
{0x21d1, 0x60},
{0x21d2, 0x32},
{0x21d3, 0x08},
{0x21d4, 0x00},
{0x21d5, 0x00},
{0x21d6, 0x00},
{0x21d7, 0x59},
{0x21d8, 0x9c},
{0x21d9, 0x80},
{0x21da, 0x1e},
{0x21db, 0x13},
{0x21dc, 0x9c},
{0x21dd, 0x80},
{0x21de, 0x00},
{0x21df, 0x04},
{0x21e0, 0x07},
{0x21e1, 0xfb},
{0x21e2, 0x17},
{0x21e3, 0x4a},
{0x21e4, 0x9c},
{0x21e5, 0xa0},
{0x21e6, 0x00},
{0x21e7, 0x02},
{0x21e8, 0xb8},
{0x21e9, 0x6a},
{0x21ea, 0x00},
{0x21eb, 0x05},
{0x21ec, 0x07},
{0x21ed, 0xfb},
{0x21ee, 0x77},
{0x21ef, 0xff},
{0x21f0, 0x9c},
{0x21f1, 0x80},
{0x21f2, 0x00},
{0x21f3, 0x56},
{0x21f4, 0xa5},
{0x21f5, 0x4b},
{0x21f6, 0xff},
{0x21f7, 0xff},
{0x21f8, 0xbc},
{0x21f9, 0xaa},
{0x21fa, 0x00},
{0x21fb, 0xff},
{0x21fc, 0x10},
{0x21fd, 0x00},
{0x21fe, 0x00},
{0x21ff, 0x28},
{0x2200, 0xbc},
{0x2201, 0xaa},
{0x2202, 0x00},
{0x2203, 0x7f},
{0x2204, 0xa8},
{0x2205, 0x8a},
{0x2206, 0x00},
{0x2207, 0x00},
{0x2208, 0x9c},
{0x2209, 0x60},
{0x220a, 0x20},
{0x220b, 0x00},
{0x220c, 0x9d},
{0x220d, 0x80},
{0x220e, 0x00},
{0x220f, 0x03},
{0x2210, 0x07},
{0x2211, 0xfb},
{0x2212, 0x77},
{0x2213, 0xf6},
{0x2214, 0x15},
{0x2215, 0x00},
{0x2216, 0x00},
{0x2217, 0x00},
{0x2218, 0x9c},
{0x2219, 0x60},
{0x221a, 0x00},
{0x221b, 0x20},
{0x221c, 0xe0},
{0x221d, 0x63},
{0x221e, 0x58},
{0x221f, 0x02},
{0x2220, 0xa5},
{0x2221, 0x43},
{0x2222, 0xff},
{0x2223, 0xff},
{0x2224, 0xbc},
{0x2225, 0xaa},
{0x2226, 0x00},
{0x2227, 0x0f},
{0x2228, 0x10},
{0x2229, 0x00},
{0x222a, 0x00},
{0x222b, 0x04},
{0x222c, 0x9c},
{0x222d, 0x6c},
{0x222e, 0x00},
{0x222f, 0x01},
{0x2230, 0x9d},
{0x2231, 0x40},
{0x2232, 0x00},
{0x2233, 0x00},
{0x2234, 0xa5},
{0x2235, 0x83},
{0x2236, 0xff},
{0x2237, 0xff},
{0x2238, 0x18},
{0x2239, 0x60},
{0x223a, 0x00},
{0x223b, 0x14},
{0x223c, 0xa8},
{0x223d, 0x63},
{0x223e, 0x5d},
{0x223f, 0x00},
{0x2240, 0x8c},
{0x2241, 0x63},
{0x2242, 0x00},
{0x2243, 0x00},
{0x2244, 0xbc},
{0x2245, 0x03},
{0x2246, 0x00},
{0x2247, 0x00},
{0x2248, 0x10},
{0x2249, 0x00},
{0x224a, 0x00},
{0x224b, 0x24},
{0x224c, 0x15},
{0x224d, 0x00},
{0x224e, 0x00},
{0x224f, 0x00},
{0x2250, 0x9c},
{0x2251, 0x60},
{0x2252, 0x30},
{0x2253, 0x96},
{0x2254, 0x9c},
{0x2255, 0x80},
{0x2256, 0x07},
{0x2257, 0x80},
{0x2258, 0x07},
{0x2259, 0xfb},
{0x225a, 0x17},
{0x225b, 0x2c},
{0x225c, 0x9c},
{0x225d, 0xa0},
{0x225e, 0x00},
{0x225f, 0x02},
{0x2260, 0x9c},
{0x2261, 0x60},
{0x2262, 0x30},
{0x2263, 0x98},
{0x2264, 0x9c},
{0x2265, 0x80},
{0x2266, 0x07},
{0x2267, 0x80},
{0x2268, 0x07},
{0x2269, 0xfb},
{0x226a, 0x17},
{0x226b, 0x28},
{0x226c, 0x9c},
{0x226d, 0xa0},
{0x226e, 0x00},
{0x226f, 0x02},
{0x2270, 0x9c},
{0x2271, 0x60},
{0x2272, 0x32},
{0x2273, 0x02},
{0x2274, 0x9c},
{0x2275, 0x80},
{0x2276, 0x00},
{0x2277, 0xb0},
{0x2278, 0x07},
{0x2279, 0xfb},
{0x227a, 0x17},
{0x227b, 0x24},
{0x227c, 0x9c},
{0x227d, 0xa0},
{0x227e, 0x00},
{0x227f, 0x02},
{0x2280, 0x9c},
{0x2281, 0x60},
{0x2282, 0x32},
{0x2283, 0x06},
{0x2284, 0x9c},
{0x2285, 0x80},
{0x2286, 0x1c},
{0x2287, 0x0e},
{0x2288, 0x07},
{0x2289, 0xfb},
{0x228a, 0x17},
{0x228b, 0x20},
{0x228c, 0x9c},
{0x228d, 0xa0},
{0x228e, 0x00},
{0x228f, 0x02},
{0x2290, 0x9c},
{0x2291, 0x60},
{0x2292, 0x32},
{0x2293, 0x08},
{0x2294, 0x00},
{0x2295, 0x00},
{0x2296, 0x00},
{0x2297, 0x29},
{0x2298, 0x9c},
{0x2299, 0x80},
{0x229a, 0x4e},
{0x229b, 0x39},
{0x229c, 0x0c},
{0x229d, 0x00},
{0x229e, 0x00},
{0x229f, 0x1f},
{0x22a0, 0xa8},
{0x22a1, 0x8a},
{0x22a2, 0x00},
{0x22a3, 0x00},
{0x22a4, 0xbc},
{0x22a5, 0xaa},
{0x22a6, 0x00},
{0x22a7, 0x3f},
{0x22a8, 0x10},
{0x22a9, 0x00},
{0x22aa, 0x00},
{0x22ab, 0x21},
{0x22ac, 0x15},
{0x22ad, 0x00},
{0x22ae, 0x00},
{0x22af, 0x00},
{0x22b0, 0x9c},
{0x22b1, 0x60},
{0x22b2, 0x08},
{0x22b3, 0x00},
{0x22b4, 0x03},
{0x22b5, 0xff},
{0x22b6, 0xff},
{0x22b7, 0xd7},
{0x22b8, 0x9d},
{0x22b9, 0x80},
{0x22ba, 0x00},
{0x22bb, 0x01},
{0x22bc, 0x0c},
{0x22bd, 0x00},
{0x22be, 0x00},
{0x22bf, 0x15},
{0x22c0, 0x9d},
{0x22c1, 0x80},
{0x22c2, 0x00},
{0x22c3, 0x01},
{0x22c4, 0xbc},
{0x22c5, 0x4a},
{0x22c6, 0x00},
{0x22c7, 0x51},
{0x22c8, 0x10},
{0x22c9, 0x00},
{0x22ca, 0x00},
{0x22cb, 0x17},
{0x22cc, 0xa8},
{0x22cd, 0x8a},
{0x22ce, 0x00},
{0x22cf, 0x00},
{0x22d0, 0x03},
{0x22d1, 0xff},
{0x22d2, 0xff},
{0x22d3, 0xa5},
{0x22d4, 0x9c},
{0x22d5, 0x60},
{0x22d6, 0x08},
{0x22d7, 0x00},
{0x22d8, 0x9c},
{0x22d9, 0x60},
{0x22da, 0x30},
{0x22db, 0x96},
{0x22dc, 0x9c},
{0x22dd, 0x80},
{0x22de, 0x00},
{0x22df, 0x80},
{0x22e0, 0x07},
{0x22e1, 0xfb},
{0x22e2, 0x17},
{0x22e3, 0x0a},
{0x22e4, 0x9c},
{0x22e5, 0xa0},
{0x22e6, 0x00},
{0x22e7, 0x02},
{0x22e8, 0x9c},
{0x22e9, 0x60},
{0x22ea, 0x30},
{0x22eb, 0x98},
{0x22ec, 0x03},
{0x22ed, 0xff},
{0x22ee, 0xff},
{0x22ef, 0xdf},
{0x22f0, 0x9c},
{0x22f1, 0x80},
{0x22f2, 0x00},
{0x22f3, 0x80},
{0x22f4, 0x9c},
{0x22f5, 0x60},
{0x22f6, 0x30},
{0x22f7, 0x96},
{0x22f8, 0x9c},
{0x22f9, 0x80},
{0x22fa, 0x00},
{0x22fb, 0x80},
{0x22fc, 0x07},
{0x22fd, 0xfb},
{0x22fe, 0x17},
{0x22ff, 0x03},
{0x2300, 0x9c},
{0x2301, 0xa0},
{0x2302, 0x00},
{0x2303, 0x02},
{0x2304, 0x9c},
{0x2305, 0x60},
{0x2306, 0x30},
{0x2307, 0x98},
{0x2308, 0x03},
{0x2309, 0xff},
{0x230a, 0xff},
{0x230b, 0xa8},
{0x230c, 0x9c},
{0x230d, 0x80},
{0x230e, 0x00},
{0x230f, 0x80},
{0x2310, 0x03},
{0x2311, 0xff},
{0x2312, 0xff},
{0x2313, 0x9a},
{0x2314, 0x9d},
{0x2315, 0x40},
{0x2316, 0x00},
{0x2317, 0x00},
{0x2318, 0x9c},
{0x2319, 0x60},
{0x231a, 0x10},
{0x231b, 0x00},
{0x231c, 0x03},
{0x231d, 0xff},
{0x231e, 0xff},
{0x231f, 0xbd},
{0x2320, 0x9d},
{0x2321, 0x80},
{0x2322, 0x00},
{0x2323, 0x02},
{0x2324, 0x03},
{0x2325, 0xff},
{0x2326, 0xff},
{0x2327, 0x95},
{0x2328, 0x9d},
{0x2329, 0x40},
{0x232a, 0x00},
{0x232b, 0x07},
{0x232c, 0x9c},
{0x232d, 0x60},
{0x232e, 0x04},
{0x232f, 0x00},
{0x2330, 0x03},
{0x2331, 0xff},
{0x2332, 0xff},
{0x2333, 0xb8},
{0x2334, 0x9d},
{0x2335, 0x80},
{0x2336, 0x00},
{0x2337, 0x00},
{0x2338, 0x07},
{0x2339, 0xfb},
{0x233a, 0x16},
{0x233b, 0xf4},
{0x233c, 0x9c},
{0x233d, 0xa0},
{0x233e, 0x00},
{0x233f, 0x02},
{0x2340, 0xb8},
{0x2341, 0x8c},
{0x2342, 0x00},
{0x2343, 0x04},
{0x2344, 0xa4},
{0x2345, 0xca},
{0x2346, 0x00},
{0x2347, 0x0f},
{0x2348, 0x9c},
{0x2349, 0x60},
{0x234a, 0x30},
{0x234b, 0x60},
{0x234c, 0xa4},
{0x234d, 0x84},
{0x234e, 0x00},
{0x234f, 0x70},
{0x2350, 0x9c},
{0x2351, 0xa0},
{0x2352, 0x00},
{0x2353, 0x02},
{0x2354, 0x07},
{0x2355, 0xfb},
{0x2356, 0x16},
{0x2357, 0xed},
{0x2358, 0xe0},
{0x2359, 0x84},
{0x235a, 0x30},
{0x235b, 0x00},
{0x235c, 0x85},
{0x235d, 0x21},
{0x235e, 0x00},
{0x235f, 0x00},
{0x2360, 0x85},
{0x2361, 0x41},
{0x2362, 0x00},
{0x2363, 0x04},
{0x2364, 0x85},
{0x2365, 0x81},
{0x2366, 0x00},
{0x2367, 0x08},
{0x2368, 0x44},
{0x2369, 0x00},
{0x236a, 0x48},
{0x236b, 0x00},
{0x236c, 0x9c},
{0x236d, 0x21},
{0x236e, 0x00},
{0x236f, 0x0c},
{0x2370, 0x9c},
{0x2371, 0x21},
{0x2372, 0xff},
{0x2373, 0xf8},
{0x2374, 0xd4},
{0x2375, 0x01},
{0x2376, 0x48},
{0x2377, 0x00},
{0x2378, 0xd4},
{0x2379, 0x01},
{0x237a, 0x50},
{0x237b, 0x04},
{0x237c, 0x07},
{0x237d, 0xfb},
{0x237e, 0x07},
{0x237f, 0x0f},
{0x2380, 0x15},
{0x2381, 0x00},
{0x2382, 0x00},
{0x2383, 0x00},
{0x2384, 0x85},
{0x2385, 0x4b},
{0x2386, 0x00},
{0x2387, 0x08},
{0x2388, 0x18},
{0x2389, 0xa0},
{0x238a, 0x00},
{0x238b, 0x14},
{0x238c, 0xa8},
{0x238d, 0xa5},
{0x238e, 0x5d},
{0x238f, 0x08},
{0x2390, 0x84},
{0x2391, 0x6a},
{0x2392, 0x01},
{0x2393, 0x08},
{0x2394, 0x84},
{0x2395, 0x8a},
{0x2396, 0x01},
{0x2397, 0x0c},
{0x2398, 0xb8},
{0x2399, 0xc3},
{0x239a, 0x00},
{0x239b, 0x44},
{0x239c, 0xb8},
{0x239d, 0x84},
{0x239e, 0x00},
{0x239f, 0x41},
{0x23a0, 0x84},
{0x23a1, 0xa5},
{0x23a2, 0x00},
{0x23a3, 0x00},
{0x23a4, 0x94},
{0x23a5, 0x6a},
{0x23a6, 0x01},
{0x23a7, 0x00},
{0x23a8, 0xe0},
{0x23a9, 0x84},
{0x23aa, 0x33},
{0x23ab, 0x06},
{0x23ac, 0x07},
{0x23ad, 0xfb},
{0x23ae, 0x77},
{0x23af, 0xa8},
{0x23b0, 0xe0},
{0x23b1, 0x63},
{0x23b2, 0x2b},
{0x23b3, 0x06},
{0x23b4, 0x18},
{0x23b5, 0x60},
{0x23b6, 0x00},
{0x23b7, 0x14},
{0x23b8, 0xa8},
{0x23b9, 0x63},
{0x23ba, 0x5d},
{0x23bb, 0x04},
{0x23bc, 0xd4},
{0x23bd, 0x03},
{0x23be, 0x58},
{0x23bf, 0x00},
{0x23c0, 0x18},
{0x23c1, 0x60},
{0x23c2, 0x00},
{0x23c3, 0x14},
{0x23c4, 0xa8},
{0x23c5, 0x63},
{0x23c6, 0x5d},
{0x23c7, 0x0c},
{0x23c8, 0x94},
{0x23c9, 0x63},
{0x23ca, 0x00},
{0x23cb, 0x00},
{0x23cc, 0xe4},
{0x23cd, 0xa3},
{0x23ce, 0x58},
{0x23cf, 0x00},
{0x23d0, 0x10},
{0x23d1, 0x00},
{0x23d2, 0x00},
{0x23d3, 0x05},
{0x23d4, 0x15},
{0x23d5, 0x00},
{0x23d6, 0x00},
{0x23d7, 0x00},
{0x23d8, 0x94},
{0x23d9, 0x6a},
{0x23da, 0x00},
{0x23db, 0x66},
{0x23dc, 0x00},
{0x23dd, 0x00},
{0x23de, 0x00},
{0x23df, 0x2a},
{0x23e0, 0xdc},
{0x23e1, 0x0a},
{0x23e2, 0x18},
{0x23e3, 0x54},
{0x23e4, 0x18},
{0x23e5, 0x60},
{0x23e6, 0x00},
{0x23e7, 0x14},
{0x23e8, 0xa8},
{0x23e9, 0x63},
{0x23ea, 0x5d},
{0x23eb, 0x0e},
{0x23ec, 0x94},
{0x23ed, 0x63},
{0x23ee, 0x00},
{0x23ef, 0x00},
{0x23f0, 0xe4},
{0x23f1, 0xa3},
{0x23f2, 0x58},
{0x23f3, 0x00},
{0x23f4, 0x10},
{0x23f5, 0x00},
{0x23f6, 0x00},
{0x23f7, 0x04},
{0x23f8, 0x15},
{0x23f9, 0x00},
{0x23fa, 0x00},
{0x23fb, 0x00},
{0x23fc, 0x03},
{0x23fd, 0xff},
{0x23fe, 0xff},
{0x23ff, 0xf8},
{0x2400, 0x94},
{0x2401, 0x6a},
{0x2402, 0x00},
{0x2403, 0x68},
{0x2404, 0x18},
{0x2405, 0x60},
{0x2406, 0x00},
{0x2407, 0x14},
{0x2408, 0xa8},
{0x2409, 0x63},
{0x240a, 0x5d},
{0x240b, 0x10},
{0x240c, 0x94},
{0x240d, 0x63},
{0x240e, 0x00},
{0x240f, 0x00},
{0x2410, 0xe4},
{0x2411, 0xa3},
{0x2412, 0x58},
{0x2413, 0x00},
{0x2414, 0x0c},
{0x2415, 0x00},
{0x2416, 0x00},
{0x2417, 0x0a},
{0x2418, 0x15},
{0x2419, 0x00},
{0x241a, 0x00},
{0x241b, 0x00},
{0x241c, 0x18},
{0x241d, 0x60},
{0x241e, 0x00},
{0x241f, 0x14},
{0x2420, 0xa8},
{0x2421, 0x63},
{0x2422, 0x5d},
{0x2423, 0x12},
{0x2424, 0x94},
{0x2425, 0x63},
{0x2426, 0x00},
{0x2427, 0x00},
{0x2428, 0xe4},
{0x2429, 0xa3},
{0x242a, 0x58},
{0x242b, 0x00},
{0x242c, 0x10},
{0x242d, 0x00},
{0x242e, 0x00},
{0x242f, 0x06},
{0x2430, 0x15},
{0x2431, 0x00},
{0x2432, 0x00},
{0x2433, 0x00},
{0x2434, 0x03},
{0x2435, 0xff},
{0x2436, 0xff},
{0x2437, 0xea},
{0x2438, 0x94},
{0x2439, 0x6a},
{0x243a, 0x00},
{0x243b, 0x6c},
{0x243c, 0x03},
{0x243d, 0xff},
{0x243e, 0xff},
{0x243f, 0xe8},
{0x2440, 0x94},
{0x2441, 0x6a},
{0x2442, 0x00},
{0x2443, 0x6a},
{0x2444, 0x18},
{0x2445, 0x60},
{0x2446, 0x00},
{0x2447, 0x14},
{0x2448, 0xa8},
{0x2449, 0x63},
{0x244a, 0x5d},
{0x244b, 0x14},
{0x244c, 0x94},
{0x244d, 0x63},
{0x244e, 0x00},
{0x244f, 0x00},
{0x2450, 0xe4},
{0x2451, 0xa3},
{0x2452, 0x58},
{0x2453, 0x00},
{0x2454, 0x0c},
{0x2455, 0x00},
{0x2456, 0x00},
{0x2457, 0x0a},
{0x2458, 0x15},
{0x2459, 0x00},
{0x245a, 0x00},
{0x245b, 0x00},
{0x245c, 0x18},
{0x245d, 0x60},
{0x245e, 0x00},
{0x245f, 0x14},
{0x2460, 0xa8},
{0x2461, 0x63},
{0x2462, 0x5d},
{0x2463, 0x16},
{0x2464, 0x94},
{0x2465, 0x63},
{0x2466, 0x00},
{0x2467, 0x00},
{0x2468, 0xe4},
{0x2469, 0xa3},
{0x246a, 0x58},
{0x246b, 0x00},
{0x246c, 0x10},
{0x246d, 0x00},
{0x246e, 0x00},
{0x246f, 0x06},
{0x2470, 0x15},
{0x2471, 0x00},
{0x2472, 0x00},
{0x2473, 0x00},
{0x2474, 0x03},
{0x2475, 0xff},
{0x2476, 0xff},
{0x2477, 0xda},
{0x2478, 0x94},
{0x2479, 0x6a},
{0x247a, 0x00},
{0x247b, 0x70},
{0x247c, 0x03},
{0x247d, 0xff},
{0x247e, 0xff},
{0x247f, 0xd8},
{0x2480, 0x94},
{0x2481, 0x6a},
{0x2482, 0x00},
{0x2483, 0x6e},
{0x2484, 0x85},
{0x2485, 0x21},
{0x2486, 0x00},
{0x2487, 0x00},
{0x2488, 0x85},
{0x2489, 0x41},
{0x248a, 0x00},
{0x248b, 0x04},
{0x248c, 0x44},
{0x248d, 0x00},
{0x248e, 0x48},
{0x248f, 0x00},
{0x2490, 0x9c},
{0x2491, 0x21},
{0x2492, 0x00},
{0x2493, 0x08},
{0x2494, 0x9c},
{0x2495, 0x21},
{0x2496, 0xff},
{0x2497, 0xfc},
{0x2498, 0xd4},
{0x2499, 0x01},
{0x249a, 0x48},
{0x249b, 0x00},
{0x249c, 0xbc},
{0x249d, 0x03},
{0x249e, 0x01},
{0x249f, 0x03},
{0x24a0, 0x10},
{0x24a1, 0x00},
{0x24a2, 0x00},
{0x24a3, 0x06},
{0x24a4, 0xbc},
{0x24a5, 0x03},
{0x24a6, 0x04},
{0x24a7, 0x0c},
{0x24a8, 0x0c},
{0x24a9, 0x00},
{0x24aa, 0x00},
{0x24ab, 0x10},
{0x24ac, 0x15},
{0x24ad, 0x00},
{0x24ae, 0x00},
{0x24af, 0x00},
{0x24b0, 0x00},
{0x24b1, 0x00},
{0x24b2, 0x00},
{0x24b3, 0x0c},
{0x24b4, 0x15},
{0x24b5, 0x00},
{0x24b6, 0x00},
{0x24b7, 0x00},
{0x24b8, 0x18},
{0x24b9, 0x60},
{0x24ba, 0x00},
{0x24bb, 0x14},
{0x24bc, 0xa8},
{0x24bd, 0x63},
{0x24be, 0x5d},
{0x24bf, 0x01},
{0x24c0, 0x8c},
{0x24c1, 0x63},
{0x24c2, 0x00},
{0x24c3, 0x00},
{0x24c4, 0xbc},
{0x24c5, 0x23},
{0x24c6, 0x00},
{0x24c7, 0x01},
{0x24c8, 0x10},
{0x24c9, 0x00},
{0x24ca, 0x00},
{0x24cb, 0x08},
{0x24cc, 0x15},
{0x24cd, 0x00},
{0x24ce, 0x00},
{0x24cf, 0x00},
{0x24d0, 0x07},
{0x24d1, 0xff},
{0x24d2, 0xff},
{0x24d3, 0xa8},
{0x24d4, 0x15},
{0x24d5, 0x00},
{0x24d6, 0x00},
{0x24d7, 0x00},
{0x24d8, 0x00},
{0x24d9, 0x00},
{0x24da, 0x00},
{0x24db, 0x04},
{0x24dc, 0x15},
{0x24dd, 0x00},
{0x24de, 0x00},
{0x24df, 0x00},
{0x24e0, 0x07},
{0x24e1, 0xff},
{0x24e2, 0xff},
{0x24e3, 0x0d},
{0x24e4, 0x15},
{0x24e5, 0x00},
{0x24e6, 0x00},
{0x24e7, 0x00},
{0x24e8, 0x85},
{0x24e9, 0x21},
{0x24ea, 0x00},
{0x24eb, 0x00},
{0x24ec, 0x44},
{0x24ed, 0x00},
{0x24ee, 0x48},
{0x24ef, 0x00},
{0x24f0, 0x9c},
{0x24f1, 0x21},
{0x24f2, 0x00},
{0x24f3, 0x04},
{0x24f4, 0x9c},
{0x24f5, 0x21},
{0x24f6, 0xff},
{0x24f7, 0xfc},
{0x24f8, 0xd4},
{0x24f9, 0x01},
{0x24fa, 0x48},
{0x24fb, 0x00},
{0x24fc, 0x07},
{0x24fd, 0xff},
{0x24fe, 0xff},
{0x24ff, 0xe6},
{0x2500, 0x15},
{0x2501, 0x00},
{0x2502, 0x00},
{0x2503, 0x00},
{0x2504, 0x9d},
{0x2505, 0x60},
{0x2506, 0x00},
{0x2507, 0x00},
{0x2508, 0x85},
{0x2509, 0x21},
{0x250a, 0x00},
{0x250b, 0x00},
{0x250c, 0x44},
{0x250d, 0x00},
{0x250e, 0x48},
{0x250f, 0x00},
{0x2510, 0x9c},
{0x2511, 0x21},
{0x2512, 0x00},
{0x2513, 0x04},
{0x2514, 0x00},
{0x2515, 0x00},
{0x2516, 0x00},
{0x2517, 0x00},
{0x2518, 0x00},
{0x2519, 0x00},
{0x251a, 0x00},
{0x251b, 0x00},
{0x251c, 0x00},
{0x251d, 0x00},
{0x251e, 0x00},
{0x251f, 0x00},
{0x2520, 0x00},
{0x2521, 0x00},
{0x2522, 0x00},
{0x2523, 0x00},
{0x2524, 0x00},
{0x2525, 0x00},
{0x2526, 0x00},
{0x2527, 0x00},
{0x2528, 0x00},
{0x2529, 0x00},
{0x252a, 0x00},
{0x252b, 0x00},

{0xfffe,0x14},
{0x5d00,0x01},
{0x5d01,0x01},
{0x5d08,0x00},
{0x5d09,0x00},
{0x5d0a,0x27},
{0x5d0b,0x10},

{0x5d0c,0x02}, //室内 0-32 对应 b2 b3
{0x5d0d,0x00},

{0x5d0e,0x04}, //室内 2-4 对应 b4 b5
{0x5d0f,0x00},

{0x5d10,0x08}, //逆光 4-7 对应 b6 b7
{0x5d11,0x00},

{0x5d12,0x20}, //室外+逆光 8-20 对应 b8 b9
{0x5d13,0x00},

{0x5d14,0xc0}, //室外 20-c0 对应 ba bb      
{0x5d15,0x00},

{0x5d16,0xff},
{0x5d17,0x00}, //室外大太阳逆光 c0-ff 对应 bc bd

{0xfffe,0x50},
{0x0137,0x99},

//patch_end

//IQ_start 
//AE       
{0xfffe,0x30},
{0x1f00,0x00},
{0x1f01,0x80}, //win_Xstart
{0x1f02,0x00},
{0x1f03,0x60}, //win_Ystart
{0x1f04,0x06},
{0x1f05,0x80}, //win_width
{0x1f06,0x03},
{0x1f07,0x78}, //win_height
{0x1f08,0x03},
{0x0051,0x01},

{0xfffe,0x14},
{0x000e,0x00}, //isp0_used_i2c
{0x010e,0x20}, //sensor_i2c_id
{0x010f,0x01}, //sensor_i2c_bits
{0x0110,0x05}, //type_gain
{0x0111,0x02}, //type_exp

{0x0114,0x30}, //exp_addr
{0x0115,0x12},
{0x0116,0x30},
{0x0117,0x13},
{0x0118,0x00},
{0x0119,0x00},
{0x011a,0x00},
{0x011b,0x00},

{0x011c,0xff}, //exp_mask
{0x011d,0xff},
{0x011e,0xff},
{0x011f,0xff},
{0x0120,0x00},
{0x0121,0x00},
{0x0122,0x00},
{0x0123,0x00},

{0x0134,0x00}, //gain_addr
{0x0135,0x00},
{0x0136,0x30},
{0x0137,0x61},
{0x0138,0x00},
{0x0139,0x00},
{0x013a,0x00},
{0x013b,0x00},

{0x013c,0x00}, //gain_mask
{0x013d,0x00},
{0x013e,0xff},
{0x013f,0xff},
{0x0140,0x00},
{0x0141,0x00},
{0x0142,0x00},
{0x0143,0x00},

//Area Weight
{0xfffe,0x14},
{0x0055,0x10},
{0x0056,0x10},
{0x0057,0x10},
{0x0058,0x10},
{0x0059,0x10},

{0x005a,0x10},
{0x005b,0x10},
{0x005c,0x10},
{0x005d,0x10},
{0x005e,0x10},

{0x005f,0x10},
{0x0060,0x10},
{0x0061,0x10},
{0x0062,0x10},
{0x0063,0x10},

{0x0064,0x10},
{0x0065,0x10},
{0x0066,0x10},
{0x0067,0x10},
{0x0068,0x10},

{0x0069,0x10},
{0x006a,0x10},
{0x006b,0x10},
{0x006c,0x10},
{0x006d,0x10},

//Attention
{0x0088,0x00},
{0x0089,0x07},
{0x008a,0x39},
{0x008b,0xc0},
{0x0050,0x01}, //refresh

//AE base  
{0xfffe,0x14},
{0x004c,0x00}, //AEC_mode
{0x004d,0x01}, //AE_force_write

{0x00a0,0x01},
{0x00a1,0x80}, //day_target

{0x00de,0x00},
{0x00df,0x10}, //min_exp
{0x00e0,0x00},
{0x00e1,0x00},
{0x00e2,0x40},
{0x00e3,0x00}, //max_exp
{0x00fa,0x00},
{0x00fb,0x80}, //max_gain
{0x00fc,0x00},
{0x00fd,0x20}, //min_gain

{0x0104,0x00}, //flicker
{0x0105,0x01}, //min_flickerlines_en
{0x0106,0x11},
{0x0107,0xb0}, //60Hz
{0x0108,0x15},
{0x0109,0x30}, //50Hz

//AE speed 
{0x00c6,0x01}, //delay_frame
{0x0144,0x00}, //exp_delay
{0x0145,0x00}, //gain_delay
{0x0031,0x01}, //exp_mode
{0x0032,0x01}, //gain_mode

{0x00c7,0x28}, //finally_thr
{0x0218,0x00},
{0x0219,0x80},
{0x021a,0x00},
{0x021b,0x80},

{0x00ca,0x00},
{0x00cb,0x60}, //thr_low
{0x00cc,0x00},
{0x00cd,0xa0}, //thr_high
{0x00ce,0x00},
{0x00cf,0x60}, //jump_thr
{0x00d4,0x00},
{0x00d5,0x80}, //jump_mutiple
{0x00d6,0x00},
{0x00d7,0x80}, //max_jump_ratio
{0x00d9,0x00}, //max_jump_cnt
{0x00da,0x00},
{0x00db,0x00}, //luma_diff_thr_low
{0x00dc,0x03},
{0x00dd,0x00}, //luma_diff_thr_high

{0x01bc,0x00},
{0x01bd,0x60}, //thr_l_all
{0x01be,0x00},
{0x01bf,0x40}, //thr_l_avg

{0x00c8,0x01}, //total_speed
{0x0208,0x02}, //limit_speed

//AE smart 
{0x0092,0x00}, //smart_mode
{0x0093,0x00}, //analysis_mode
{0x0094,0x00}, //smart_speed_limit

{0x0095,0x00}, //PDFH_move_avg
{0x00ad,0x04}, //ATT_block_cnt
{0x01c0,0x06}, //PDFH_used_cnt

//table reftarget
{0x0022,0x1e}, //use_cur_fps

{0x01e4,0x00},
{0x01e5,0x00},
{0x01e6,0x0b},
{0x01e7,0x00}, //table0
{0x01e8,0x00},
{0x01e9,0x00},
{0x01ea,0x2c},
{0x01eb,0x00}, //table1
{0x01ec,0x00},
{0x01ed,0x00},
{0x01ee,0xb0},
{0x01ef,0x00}, //table2
{0x01f0,0x00},
{0x01f1,0x02},
{0x01f2,0xc0},
{0x01f3,0x00}, //table3
{0x01f4,0x00},
{0x01f5,0x0b},
{0x01f6,0x00},
{0x01f7,0x00}, //table4
{0x01f8,0x00},
{0x01f9,0x2c},
{0x01fa,0x00},
{0x01fb,0x00}, //table5

//reftarget
{0x00b2,0x01},
{0x00b3,0x80}, //ref_target_table0
{0x00b4,0x01},
{0x00b5,0x80}, //ref_target_table1
{0x00b6,0x01},
{0x00b7,0xc0}, //ref_target_table2
{0x00b8,0x01},
{0x00b9,0xc0}, //ref_target_table3
{0x00ba,0x01},
{0x00bb,0x80}, //ref_target_table4
{0x00bc,0x01},
{0x00bd,0xa0}, //ref_target_table5

{0x01cb,0x00}, //avg_thr_low
{0x01cc,0x60}, //avg_thr_high
{0x01cd,0x23}, //avg_affect_val

//over exposure offset
{0x01d6,0x10},
{0x01d7,0x0e},
{0x01d8,0x1e},
{0x01d9,0x2c},
{0x01da,0x30},
{0x01db,0x28},

//main body ratio table
{0x01dc,0x40},
{0x01dd,0x30},
{0x01de,0x20},
{0x01df,0x10},
{0x01e0,0x00},
{0x01e1,0x00},

{0x01b0,0x40}, //PDFL_brighten_max
{0x01b1,0x25}, //variance_affect_val
{0x01b2,0x01},
{0x01b3,0x00}, //variance_thr_low
{0x01b4,0x08},
{0x01b5,0x00}, //variance_thr_high

{0x01c6,0x30}, //PDFL_target
{0x01c7,0x1f}, //PDFH_max
{0x01c9,0x01}, //PDFH_target
{0x01ca,0x80}, //over_exp_affect_val_1
{0x01d0,0x01}, //over_exp_ref
{0x01d1,0x60}, //over_exp_affect_val_0
{0x01d2,0x08}, //under_exp_affect_val
{0x021d,0x04}, //PDFH_brighten_thr
{0x01b7,0x00}, //bright_ratio_thr_low
{0x01b8,0x20}, //bright_ratio_thr_middle
{0x01b9,0x60}, //bright_ratio_thr_high
{0x01ba,0x10}, //bright_ratio_affect

{0x00a6,0x32}, //CDF_high
{0x00a7,0x20}, //CDF_low

{0x0168,0x00},
{0x0169,0x00}, //min_avg_thr
{0x016a,0x03},
{0x016b,0x00}, //max_avg_thr
{0x016c,0x00},
{0x016d,0xa0}, //min_ATT_thr
{0x016e,0x02},
{0x016f,0x80}, //max_ATT_thr
{0x01d3,0x00}, //ATT_limit_affect_val_low
{0x01d4,0x10}, //ATT_limit_affect_val_high
{0x01d5,0x10}, //global_limit_ratio

{0x1a74,0x01}, //AE_mutiple_frame
{0x1a75,0x00}, //AE_active_frame

//LENC     
{0xfffe,0x30},
{0x03ca,0x0c}, //lenc_scale
{0x03cb,0xcc},
{0x03cc,0x16},
{0x03cd,0xc1},
{0x03ce,0x0c},
{0x03cf,0xcc},
{0x03d0,0x0b},
{0x03d1,0x60},

{0x000e,0x00},
{0x000f,0x00},
{0x0010,0x00},
{0x0011,0x00},
{0x0012,0x80}, //lenc_skip

{0xfffe,0x14},
{0x0928,0x00},
{0x0929,0x79}, //Alight_CT_thr
{0x092a,0x00},
{0x092b,0xaa}, //Clight_CT_thr
{0x092c,0x01},
{0x092d,0x23}, //Dlight_CT_thr

{0x06e5,0x2 }, //A_light
{0x06e6,0x20},
{0x06e7,0x2a},
{0x06e8,0x2d},
{0x06e9,0x30},
{0x06ea,0x29},
{0x06eb,0x22},
{0x06ec,0x9 },
{0x06ed,0x1b},
{0x06ee,0x11},
{0x06ef,0xb },
{0x06f0,0x8 },
{0x06f1,0x7 },
{0x06f2,0xa },
{0x06f3,0xf },
{0x06f4,0x19},
{0x06f5,0x6 },
{0x06f6,0x3 },
{0x06f7,0x2 },
{0x06f8,0x1 },
{0x06f9,0x1 },
{0x06fa,0x1 },
{0x06fb,0x2 },
{0x06fc,0x4 },
{0x06fd,0x4 },
{0x06fe,0x2 },
{0x06ff,0x1 },
{0x0700,0x0 },
{0x0701,0x0 },
{0x0702,0x0 },
{0x0703,0x1 },
{0x0704,0x3 },
{0x0705,0x3 },
{0x0706,0x1 },
{0x0707,0x0 },
{0x0708,0x0 },
{0x0709,0x0 },
{0x070a,0x0 },
{0x070b,0x1 },
{0x070c,0x2 },
{0x070d,0x5 },
{0x070e,0x2 },
{0x070f,0x2 },
{0x0710,0x1 },
{0x0711,0x1 },
{0x0712,0x1 },
{0x0713,0x2 },
{0x0714,0x4 },
{0x0715,0x12},
{0x0716,0xc },
{0x0717,0x8 },
{0x0718,0x6 },
{0x0719,0x6 },
{0x071a,0x7 },
{0x071b,0xb },
{0x071c,0xe },
{0x071d,0x8 },
{0x071e,0x1b},
{0x071f,0x22},
{0x0720,0x24},
{0x0721,0x24},
{0x0722,0x20},
{0x0723,0x17},
{0x0724,0xd },
{0x0725,0x23},
{0x0726,0x19},
{0x0727,0x15},
{0x0728,0x14},
{0x0729,0x13},
{0x072a,0x13},
{0x072b,0x13},
{0x072c,0x18},
{0x072d,0xf },
{0x072e,0x11},
{0x072f,0x15},
{0x0730,0x16},
{0x0731,0x15},
{0x0732,0x11},
{0x0733,0xe },
{0x0734,0xd },
{0x0735,0xe },
{0x0736,0x15},
{0x0737,0x1b},
{0x0738,0x1d},
{0x0739,0x1a},
{0x073a,0x17},
{0x073b,0x12},
{0x073c,0xf },
{0x073d,0xf },
{0x073e,0x18},
{0x073f,0x1e},
{0x0740,0x21},
{0x0741,0x20},
{0x0742,0x1d},
{0x0743,0x18},
{0x0744,0x13},
{0x0745,0xd },
{0x0746,0x16},
{0x0747,0x1c},
{0x0748,0x20},
{0x0749,0x21},
{0x074a,0x1e},
{0x074b,0x19},
{0x074c,0x15},
{0x074d,0xc },
{0x074e,0x12},
{0x074f,0x18},
{0x0750,0x1b},
{0x0751,0x1b},
{0x0752,0x19},
{0x0753,0x15},
{0x0754,0x11},
{0x0755,0xb },
{0x0756,0xf },
{0x0757,0x12},
{0x0758,0x14},
{0x0759,0x14},
{0x075a,0x12},
{0x075b,0xf },
{0x075c,0xe },
{0x075d,0x1b},
{0x075e,0x14},
{0x075f,0x12},
{0x0760,0x12},
{0x0761,0x11},
{0x0762,0x12},
{0x0763,0x14},
{0x0764,0x17},
{0x0765,0x24},
{0x0766,0x25},
{0x0767,0x29},
{0x0768,0x2b},
{0x0769,0x2c},
{0x076a,0x2d},
{0x076b,0x2f},
{0x076c,0x33},
{0x076d,0x24},
{0x076e,0x26},
{0x076f,0x27},
{0x0770,0x2a},
{0x0771,0x2d},
{0x0772,0x2f},
{0x0773,0x31},
{0x0774,0x2f},
{0x0775,0x23},
{0x0776,0x22},
{0x0777,0x22},
{0x0778,0x23},
{0x0779,0x26},
{0x077a,0x29},
{0x077b,0x2c},
{0x077c,0x2c},
{0x077d,0x24},
{0x077e,0x22},
{0x077f,0x20},
{0x0780,0x20},
{0x0781,0x21},
{0x0782,0x23},
{0x0783,0x25},
{0x0784,0x25},
{0x0785,0x26},
{0x0786,0x23},
{0x0787,0x21},
{0x0788,0x20},
{0x0789,0x20},
{0x078a,0x22},
{0x078b,0x23},
{0x078c,0x23},
{0x078d,0x27},
{0x078e,0x24},
{0x078f,0x23},
{0x0790,0x22},
{0x0791,0x23},
{0x0792,0x24},
{0x0793,0x25},
{0x0794,0x24},
{0x0795,0x26},
{0x0796,0x26},
{0x0797,0x26},
{0x0798,0x27},
{0x0799,0x28},
{0x079a,0x29},
{0x079b,0x29},
{0x079c,0x29},
{0x079d,0x28},
{0x079e,0x25},
{0x079f,0x27},
{0x07a0,0x28},
{0x07a1,0x2a},
{0x07a2,0x28},
{0x07a3,0x2a},
{0x07a4,0x26},

{0x07a5,0x3 }, //C_light                                 
{0x07a6,0x19},                        
{0x07a7,0x1f},                        
{0x07a8,0x21},                        
{0x07a9,0x23},                        
{0x07aa,0x1e},                        
{0x07ab,0x19},                        
{0x07ac,0x7 },                        
{0x07ad,0x16},                        
{0x07ae,0xf },                        
{0x07af,0xa },                        
{0x07b0,0x8 },                        
{0x07b1,0x7 },                        
{0x07b2,0x9 },                        
{0x07b3,0xd },                        
{0x07b4,0x14},                        
{0x07b5,0x7 },                        
{0x07b6,0x3 },                        
{0x07b7,0x2 },                        
{0x07b8,0x1 },                        
{0x07b9,0x1 },                        
{0x07ba,0x1 },                        
{0x07bb,0x2 },                        
{0x07bc,0x5 },                        
{0x07bd,0x4 },                        
{0x07be,0x2 },                        
{0x07bf,0x1 },                        
{0x07c0,0x0 },                        
{0x07c1,0x0 },                        
{0x07c2,0x0 },                        
{0x07c3,0x1 },                        
{0x07c4,0x3 },                        
{0x07c5,0x3 },                        
{0x07c6,0x1 },                        
{0x07c7,0x0 },                        
{0x07c8,0x0 },                        
{0x07c9,0x0 },                        
{0x07ca,0x0 },                        
{0x07cb,0x1 },                        
{0x07cc,0x2 },                        
{0x07cd,0x5 },                        
{0x07ce,0x2 },                        
{0x07cf,0x1 },                        
{0x07d0,0x1 },                        
{0x07d1,0x1 },                        
{0x07d2,0x1 },                        
{0x07d3,0x2 },                        
{0x07d4,0x4 },                        
{0x07d5,0xf },                        
{0x07d6,0xb },                        
{0x07d7,0x8 },                        
{0x07d8,0x6 },                        
{0x07d9,0x6 },                        
{0x07da,0x7 },                        
{0x07db,0xa },                        
{0x07dc,0xc },                        
{0x07dd,0x6 },                        
{0x07de,0x15},                        
{0x07df,0x1b},                        
{0x07e0,0x1c},                        
{0x07e1,0x1c},                        
{0x07e2,0x1a},                        
{0x07e3,0x13},                        
{0x07e4,0xa },                        
{0x07e5,0x24},                        
{0x07e6,0x1a},                        
{0x07e7,0x16},                        
{0x07e8,0x15},                        
{0x07e9,0x16},                        
{0x07ea,0x14},                        
{0x07eb,0x15},                        
{0x07ec,0x16},                        
{0x07ed,0x12},                        
{0x07ee,0x14},                        
{0x07ef,0x16},                        
{0x07f0,0x17},                        
{0x07f1,0x15},                        
{0x07f2,0x12},                        
{0x07f3,0xf },                        
{0x07f4,0xe },                        
{0x07f5,0x10},                        
{0x07f6,0x17},                        
{0x07f7,0x1b},                        
{0x07f8,0x1d},                        
{0x07f9,0x1b},                        
{0x07fa,0x16},                        
{0x07fb,0x12},                        
{0x07fc,0xe },                        
{0x07fd,0x10},                        
{0x07fe,0x18},                        
{0x07ff,0x1e},                        
{0x0800,0x21},                        
{0x0801,0x20},                        
{0x0802,0x1d},                        
{0x0803,0x18},                        
{0x0804,0x14},                        
{0x0805,0xe },                        
{0x0806,0x15},                        
{0x0807,0x1c},                        
{0x0808,0x20},                        
{0x0809,0x21},                        
{0x080a,0x1e},                        
{0x080b,0x19},                        
{0x080c,0x15},                        
{0x080d,0xb },                        
{0x080e,0x12},                        
{0x080f,0x18},                        
{0x0810,0x1b},                        
{0x0811,0x1b},                        
{0x0812,0x18},                        
{0x0813,0x15},                        
{0x0814,0x11},                        
{0x0815,0xd },                        
{0x0816,0x10},                        
{0x0817,0x13},                        
{0x0818,0x15},                        
{0x0819,0x14},                        
{0x081a,0x12},                        
{0x081b,0xf },                        
{0x081c,0xe },                        
{0x081d,0x1a},                        
{0x081e,0x15},                        
{0x081f,0x14},                        
{0x0820,0x14},                        
{0x0821,0x13},                        
{0x0822,0x14},                        
{0x0823,0x15},                        
{0x0824,0x19},                        
{0x0825,0x1d},                        
{0x0826,0x1d},                        
{0x0827,0x1f},                        
{0x0828,0x21},                        
{0x0829,0x22},                        
{0x082a,0x23},                        
{0x082b,0x27},                        
{0x082c,0x2a},                        
{0x082d,0x1a},                        
{0x082e,0x1a},                        
{0x082f,0x1c},                        
{0x0830,0x1f},                        
{0x0831,0x22},                        
{0x0832,0x23},                        
{0x0833,0x22},                        
{0x0834,0x23},                        
{0x0835,0x18},                        
{0x0836,0x1a},                        
{0x0837,0x1c},                        
{0x0838,0x1f},                        
{0x0839,0x21},                        
{0x083a,0x23},                        
{0x083b,0x23},                        
{0x083c,0x1f},                        
{0x083d,0x1d},                        
{0x083e,0x1d},                        
{0x083f,0x1e},                        
{0x0840,0x20},                        
{0x0841,0x21},                        
{0x0842,0x21},                        
{0x0843,0x20},                        
{0x0844,0x1d},                        
{0x0845,0x1e},                        
{0x0846,0x1d},                        
{0x0847,0x1f},                        
{0x0848,0x20},                        
{0x0849,0x20},                        
{0x084a,0x20},                        
{0x084b,0x1e},                        
{0x084c,0x1b},                        
{0x084d,0x1c},                        
{0x084e,0x1c},                        
{0x084f,0x1d},                        
{0x0850,0x1e},                        
{0x0851,0x1f},                        
{0x0852,0x1f},                        
{0x0853,0x1e},                        
{0x0854,0x1a},                        
{0x0855,0x1a},                        
{0x0856,0x1a},                        
{0x0857,0x1b},                        
{0x0858,0x1d},                        
{0x0859,0x1e},                        
{0x085a,0x1f},                        
{0x085b,0x1d},                        
{0x085c,0x1b},                        
{0x085d,0x22},                        
{0x085e,0x1d},                        
{0x085f,0x1d},                        
{0x0860,0x1d},                        
{0x0861,0x1e},                        
{0x0862,0x1f},                        
{0x0863,0x22},                        
{0x0864,0x23},                        

{0x0865,0x0 }, //D_light                    
{0x0866,0x27},                              
{0x0867,0x2f},                              
{0x0868,0x30},                              
{0x0869,0x32},                              
{0x086a,0x2a},                              
{0x086b,0x23},                              
{0x086c,0xa },                              
{0x086d,0x20},                              
{0x086e,0x13},                              
{0x086f,0xb },                              
{0x0870,0x8 },                              
{0x0871,0x8 },                              
{0x0872,0xa },                              
{0x0873,0xf },                              
{0x0874,0x19},                              
{0x0875,0x7 },                              
{0x0876,0x3 },                              
{0x0877,0x2 },                              
{0x0878,0x2 },                              
{0x0879,0x1 },                              
{0x087a,0x1 },                              
{0x087b,0x2 },                              
{0x087c,0x5 },                              
{0x087d,0x4 },                              
{0x087e,0x2 },                              
{0x087f,0x1 },                              
{0x0880,0x0 },                              
{0x0881,0x0 },                              
{0x0882,0x0 },                              
{0x0883,0x1 },                              
{0x0884,0x3 },                              
{0x0885,0x3 },                              
{0x0886,0x1 },                              
{0x0887,0x0 },                              
{0x0888,0x0 },                              
{0x0889,0x0 },                              
{0x088a,0x0 },                              
{0x088b,0x1 },                              
{0x088c,0x2 },                              
{0x088d,0x5 },                              
{0x088e,0x3 },                              
{0x088f,0x2 },                              
{0x0890,0x1 },                              
{0x0891,0x1 },                              
{0x0892,0x1 },                              
{0x0893,0x2 },                              
{0x0894,0x4 },                              
{0x0895,0x13},                              
{0x0896,0xc },                              
{0x0897,0x8 },                              
{0x0898,0x7 },                              
{0x0899,0x7 },                              
{0x089a,0x8 },                              
{0x089b,0xb },                              
{0x089c,0xf },                              
{0x089d,0x7 },                              
{0x089e,0x1d},                              
{0x089f,0x25},                              
{0x08a0,0x26},                              
{0x08a1,0x26},                              
{0x08a2,0x22},                              
{0x08a3,0x18},                              
{0x08a4,0xd },                              
{0x08a5,0x29},                              
{0x08a6,0x1f},                              
{0x08a7,0x1b},                              
{0x08a8,0x1a},                              
{0x08a9,0x1a},                              
{0x08aa,0x19},                              
{0x08ab,0x17},                              
{0x08ac,0x17},                              
{0x08ad,0x1f},                              
{0x08ae,0x21},                              
{0x08af,0x21},                              
{0x08b0,0x1e},                              
{0x08b1,0x1b},                              
{0x08b2,0x18},                              
{0x08b3,0x15},                              
{0x08b4,0x13},                              
{0x08b5,0x1f},                              
{0x08b6,0x22},                              
{0x08b7,0x22},                              
{0x08b8,0x21},                              
{0x08b9,0x1d},                              
{0x08ba,0x19},                              
{0x08bb,0x16},                              
{0x08bc,0x14},                              
{0x08bd,0x19},                              
{0x08be,0x1e},                              
{0x08bf,0x21},                              
{0x08c0,0x21},                              
{0x08c1,0x20},                              
{0x08c2,0x1e},                              
{0x08c3,0x1a},                              
{0x08c4,0x18},                              
{0x08c5,0x13},                              
{0x08c6,0x1b},                              
{0x08c7,0x1e},                              
{0x08c8,0x20},                              
{0x08c9,0x21},                              
{0x08ca,0x1f},                              
{0x08cb,0x1c},                              
{0x08cc,0x1a},                              
{0x08cd,0x15},                              
{0x08ce,0x18},                              
{0x08cf,0x1b},                              
{0x08d0,0x1d},                              
{0x08d1,0x1d},                              
{0x08d2,0x1b},                              
{0x08d3,0x19},                              
{0x08d4,0x18},                              
{0x08d5,0x15},                              
{0x08d6,0x19},                              
{0x08d7,0x1b},                              
{0x08d8,0x1b},                              
{0x08d9,0x1a},                              
{0x08da,0x18},                              
{0x08db,0x17},                              
{0x08dc,0x16},                              
{0x08dd,0x1a},                              
{0x08de,0x17},                              
{0x08df,0x18},                              
{0x08e0,0x18},                              
{0x08e1,0x18},                              
{0x08e2,0x18},                              
{0x08e3,0x18},                              
{0x08e4,0x18},                              
{0x08e5,0x21},                              
{0x08e6,0x20},                              
{0x08e7,0x21},                              
{0x08e8,0x23},                              
{0x08e9,0x26},                              
{0x08ea,0x26},                              
{0x08eb,0x2a},                              
{0x08ec,0x2e},                              
{0x08ed,0x1c},                              
{0x08ee,0x1d},                              
{0x08ef,0x20},                              
{0x08f0,0x23},                              
{0x08f1,0x26},                              
{0x08f2,0x28},                              
{0x08f3,0x26},                              
{0x08f4,0x25},                              
{0x08f5,0x1c},                              
{0x08f6,0x1d},                              
{0x08f7,0x1e},                              
{0x08f8,0x20},                              
{0x08f9,0x23},                              
{0x08fa,0x25},                              
{0x08fb,0x26},                              
{0x08fc,0x23},                              
{0x08fd,0x1e},                              
{0x08fe,0x1e},                              
{0x08ff,0x1f},                              
{0x0900,0x20},                              
{0x0901,0x21},                              
{0x0902,0x22},                              
{0x0903,0x22},                              
{0x0904,0x1f},                              
{0x0905,0x1f},                              
{0x0906,0x1f},                              
{0x0907,0x20},                              
{0x0908,0x20},                              
{0x0909,0x20},                              
{0x090a,0x21},                              
{0x090b,0x21},                              
{0x090c,0x1d},                              
{0x090d,0x1f},                              
{0x090e,0x1f},                              
{0x090f,0x1f},                              
{0x0910,0x20},                              
{0x0911,0x21},                              
{0x0912,0x21},                              
{0x0913,0x20},                              
{0x0914,0x1e},                              
{0x0915,0x1d},                              
{0x0916,0x1e},                              
{0x0917,0x1f},                              
{0x0918,0x20},                              
{0x0919,0x22},                              
{0x091a,0x23},                              
{0x091b,0x22},                              
{0x091c,0x1f},                              
{0x091d,0x22},                              
{0x091e,0x1e},                              
{0x091f,0x1f},                              
{0x0920,0x20},                              
{0x0921,0x22},                              
{0x0922,0x22},                              
{0x0923,0x23},                              
{0x0924,0x25},                              

{0xfffe,0x30},
{0x03c2,0x18}, //min_q
{0x03c3,0x40}, //max_q
{0x03c4,0x07}, //lenc_ctrl
{0x03c6,0x01},
{0x03c7,0x00}, //autoG_max_gain
{0x03c8,0x00},
{0x03c9,0x40}, //autoG_min_gain

//BLC      
{0xfffe,0x30},
{0x0013,0x00},
{0x0014,0x00},
{0x071b,0x00},

//AWB      
{0xfffe,0x14},
{0x0248,0x01}, //AWB_mode
{0x0249,0x01}, //AWB_fleximap_en
{0x027a,0x00},
{0x027b,0x10}, //min_num
{0x027c,0x0f},
{0x027d,0xff}, //max_awb_gain
{0x027e,0x04}, //awb_step
{0x027f,0x80}, //max_step_value

{0x02b6,0x06},
{0x02b7,0x00}, //B_temp
{0x02ba,0x04},
{0x02bb,0x00}, //G_temp
{0x02be,0x04},
{0x02bf,0x00}, //R_temp

{0x024a,0x02}, //awb_move_en
{0x024e,0x01},
{0x024f,0x00}, //D65:B_offset
{0x0252,0x01},
{0x0253,0x00}, //D65:R_offset
{0x0256,0x01},
{0x0257,0x00}, //CWF:B_offset
{0x025a,0x01},
{0x025b,0x00}, //CWF:R_offset
{0x025e,0x01},
{0x025f,0x00}, //A:B_offset
{0x0262,0x01},
{0x0263,0x00}, //A:R_offset
{0x0264,0x00},
{0x0265,0x38}, //awb_color0
{0x0266,0x00},
{0x0267,0x61}, //awb_color1
{0x0268,0x00},
{0x0269,0xd0}, //awb_color2
{0x026a,0x88}, //awb_shift_R
{0x026b,0x80}, //awb_shift_B

{0xfffe,0x30},
{0x0708,0x02},
{0x0709,0xa0}, //pixel_max_value
{0x070a,0x00},
{0x070b,0x10}, //pixel_min_value

{0xfffe,0x30},
{0x0730,0x9a},
{0x0731,0xbe},
{0x0732,0x30},
{0x0733,0x40},
{0x0734,0x90},
{0x0735,0xaa},
{0x0736,0x3e},
{0x0737,0x5e},
{0x0738,0x51},
{0x0739,0x6e},
{0x073a,0x4a},
{0x073b,0x66},
{0x073c,0x60},
{0x073d,0x7a},
{0x073e,0x5a},
{0x073f,0x73},
{0x0740,0x50},
{0x0741,0x62},
{0x0742,0x5c},
{0x0743,0x80},
{0x0744,0x77},
{0x0745,0x92},
{0x0746,0x5d},
{0x0747,0x6f},
{0x0748,0x44},
{0x0749,0x55},
{0x074a,0x49},
{0x074b,0x7e},
{0x074c,0x64},
{0x074d,0x91},
{0x074e,0x4b},
{0x074f,0x60},
{0x0750,0x00},
{0x0751,0x00},
{0x0752,0x00},
{0x0753,0x00},
{0x0754,0x00},
{0x0755,0x00},
{0x0756,0x00},
{0x0757,0x00},
{0x0758,0x00},
{0x0759,0x00},
{0x075a,0x00},
{0x075b,0x00},
{0x075c,0x00},
{0x075d,0x00},
{0x075e,0x00},
{0x075f,0x00},
{0x0760,0x00},
{0x0761,0x00},
{0x0762,0x00},
{0x0763,0x00},
{0x0764,0x00},
{0x0765,0x00},
{0x0766,0x00},
{0x0767,0x00},
{0x0768,0x00},
{0x0769,0x00},
{0x076a,0x00},
{0x076b,0x00},
{0x076c,0x00},
{0x076d,0x00},
{0x076e,0x00},
{0x076f,0x00},
{0x0770,0x22},
{0x0771,0x21},
{0x0772,0x11},
{0x0773,0x11},
{0x0774,0x00},
{0x0775,0x00},
{0x0776,0x00},
{0x0777,0x00},

//RAW Gamma
{0xfffe,0x30},
{0x0901,0x04},
{0x0902,0x08},
{0x0903,0x10},
{0x0904,0x20},
{0x0905,0x28},
{0x0906,0x30},
{0x0907,0x38},
{0x0908,0x40},
{0x0909,0x48},
{0x090a,0x50},
{0x090b,0x60},
{0x090c,0x70},
{0x090d,0x90},
{0x090e,0xb0},
{0x090f,0xd0},
{0x0910,0x20},

//RGB Gamma
{0xfffe,0x30},
{0x1400,0x00},
{0x1401,0x03},
{0x1402,0x06},
{0x1403,0x09},
{0x1404,0x0c},
{0x1405,0x0f},
{0x1406,0x12},
{0x1407,0x15},
{0x1408,0x18},
{0x1409,0x1b},
{0x140a,0x1f},
{0x140b,0x22},
{0x140c,0x25},
{0x140d,0x28},
{0x140e,0x2c},
{0x140f,0x30},
{0x1410,0x33},
{0x1411,0x37},
{0x1412,0x3b},
{0x1413,0x3f},
{0x1414,0x43},
{0x1415,0x47},
{0x1416,0x4b},
{0x1417,0x4f},
{0x1418,0x52},
{0x1419,0x56},
{0x141a,0x5a},
{0x141b,0x5e},
{0x141c,0x61},
{0x141d,0x65},
{0x141e,0x68},
{0x141f,0x6c},
{0x1420,0x70},
{0x1421,0x77},
{0x1422,0x7d},
{0x1423,0x84},
{0x1424,0x8b},
{0x1425,0x91},
{0x1426,0x97},
{0x1427,0x9c},
{0x1428,0xa1},
{0x1429,0xa5},
{0x142a,0xa9},
{0x142b,0xad},
{0x142c,0xb0},
{0x142d,0xb4},
{0x142e,0xb6},
{0x142f,0xb9},
{0x1430,0xbc},
{0x1431,0xc1},
{0x1432,0xc5},
{0x1433,0xca},
{0x1434,0xce},
{0x1435,0xd2},
{0x1436,0xd6},
{0x1437,0xda},
{0x1438,0xde},
{0x1439,0xe2},
{0x143a,0xe6},
{0x143b,0xea},
{0x143c,0xee},
{0x143d,0xf2},
{0x143e,0xf6},
{0x143f,0xfb},
{0x1440,0xff},

{0x1450,0xff},
{0x1451,0x03},
{0x1452,0x50},
{0x1453,0x30},

//CMX      
{0xfffe,0x30},
{0x1200,0x01},
{0x1201,0xBA},
{0x1202,0x00},
{0x1203,0x2F},
{0x1204,0x00},
{0x1205,0x87},
{0x1206,0x01},
{0x1207,0x13},
{0x1208,0x00},
{0x1209,0xaF},
{0x120a,0x03},
{0x120b,0x22},
{0x120c,0x06},
{0x120d,0xC8},
{0x120e,0x00},
{0x120f,0xBB},
{0x1210,0x02},
{0x1211,0xD2},
{0x1212,0x01},
{0x1213,0xC7},
{0x1214,0x00},
{0x1215,0xE0},
{0x1216,0x01},
{0x1217,0x4B},
{0x1218,0x03},
{0x1219,0x4C},
{0x121a,0x00},
{0x121b,0x34},
{0x121c,0x00},
{0x121d,0x17},
{0x121e,0x02},
{0x121f,0x1B},
{0x1220,0x00},
{0x1221,0x4D},
{0x1222,0x03},
{0x1223,0x9C},
{0x122e,0x18},
{0x122f,0x0A},
{0x1230,0x02},
{0x1228,0x00},
{0x1229,0x7C},
{0x122a,0x00},
{0x122b,0xD9},
{0x122c,0x01},
{0x122d,0x8E},

{0x1231,0x03}, //cmx_ctrl
{0x1232,0x48},
{0x1233,0x30},
{0x1234,0x07},
{0x1235,0x0f},

//advance_raw_dns
{0xfffe,0x30},
{0x2000,0x0a}, //s0_sigma_0
{0x2001,0x10},
{0x2002,0x18},
{0x2003,0x1a},
{0x2004,0x20},
{0x2005,0x28},

{0x2006,0x18}, //s0_Gsl_0
{0x2007,0x12},
{0x2008,0x10},
{0x2009,0x06},
{0x200a,0x04},
{0x200b,0x02},

{0x200c,0x10}, //s0_RBsl_0
{0x200d,0x0e},
{0x200e,0x0a},
{0x200f,0x06},
{0x2010,0x04},
{0x2011,0x02},

{0x2012,0x28}, //s0_ps00
{0x2013,0x2a},
{0x2014,0x2e},
{0x2015,0x20},
{0x2016,0x24},
{0x2017,0x28},

{0x2018,0x20}, //s0_ps10
{0x2019,0x24},
{0x201a,0x28},
{0x201b,0x2c},
{0x201c,0x30},
{0x201d,0x34},

{0x201e,0x2c}, //s0_ps20
{0x201f,0x28},
{0x2020,0x30},
{0x2021,0x20},
{0x2022,0x30},
{0x2023,0x34},

{0x2024,0x10}, //s0_ps30
{0x2025,0x2c},
{0x2026,0x30},
{0x2027,0x24},
{0x2028,0x30},
{0x2029,0x34},

{0x202a,0x08}, //s0_pl0
{0x202b,0x08},
{0x202c,0x08},
{0x202d,0x08},
{0x202e,0x08},
{0x202f,0x08}, //s0_pl05

{0x2030,0x08}, //s0_pl10
{0x2031,0x08},
{0x2032,0x08},
{0x2033,0x08},
{0x2034,0x08},
{0x2035,0x08}, //s0_pl15

{0x2036,0x08}, //s0_pl20
{0x2037,0x08},
{0x2038,0x08},
{0x2039,0x08},
{0x203a,0x08},
{0x203b,0x08}, //s0_pl25

{0x203c,0x08}, //s0_pl30
{0x203d,0x08},
{0x203e,0x08},
{0x203f,0x08},
{0x2040,0x08},
{0x2041,0x08}, //s0_pl35

{0x2044,0x10}, //thre_y

//UV_dns   
{0xfffe,0x30},
{0x2100,0x08}, //l_noise_list0
{0x2101,0x08},
{0x2102,0x08},
{0x2103,0x08},
{0x2104,0x08},
{0x2105,0x08}, //l_noise_list5
{0x2106,0x5f}, //uv_dns_ctrl
{0x2107,0x08}, //noise_man_value

//CIP      
{0xfffe,0x30},
{0x0f00,0x48}, //bit[7:4] noise_y_slp bit[3:0] Lsharp
{0x0f02,0x00}, //noise_list0
{0x0f03,0x00},
{0x0f04,0x00},
{0x0f05,0x00},
{0x0f06,0x00},
{0x0f07,0x00},
{0x0f08,0x00},
{0x0f09,0x00},
{0x0f0a,0x01}, //min_shp
{0x0f0b,0x03}, //max_shp
{0x0f0c,0x03}, //min_detail
{0x0f0d,0x03}, //max_detail
{0x0f0e,0x02}, //min_shp_gain
{0x0f0f,0x0c}, //max_shp_gain
{0x0f10,0x20},

//WDR      
{0xfffe,0x30},
{0x2b04,0x08}, //sat_factor
{0x2b16,0x04}, //wdr_ctrl

{0xfffe,0x14},
{0x09ab,0x02}, //Gmax
{0x09ac,0x08},
{0x09ad,0xb4}, //map_rang
{0x09ae,0x41}, //PDF64_num_thd
{0x09af,0xff}, //gray_high
{0x09b2,0x02},
{0x09b3,0x00}, //gain_thd
{0x09b4,0x10}, //ext_ratio
{0x09b5,0x14}, //ext_ratio_max
{0x09b6,0x00}, //weak_adj_on

{0xfffe,0x30},
{0x2b9a,0x00},
{0x2b9b,0x00}, //gain_list0
{0x2b9c,0x10},
{0x2b9d,0x00},
{0x2b9e,0x20},
{0x2b9f,0x00},
{0x2ba0,0x40},
{0x2ba1,0x00},
{0x2ba2,0x70},
{0x2ba3,0x00},
{0x2ba4,0xa0},
{0x2ba5,0x00},
{0x2ba6,0xd0},
{0x2ba7,0x00},
{0x2ba8,0x00},
{0x2ba9,0x01},
{0x2bac,0x18}, //thd0
{0x2bad,0x18},
{0x2bae,0x1a},
{0x2baf,0x1a},
{0x2bb0,0x1b},
{0x2bb1,0x1b},
{0x2bb2,0x1d},
{0x2bb3,0x20},
{0x2bb4,0x7f}, //thd0_max
{0x2bb5,0x7f},
{0x2bb6,0x7f},
{0x2bb7,0x7f},
{0x2bb8,0x7f},
{0x2bb9,0x7f},
{0x2bba,0x7f},
{0x2bbb,0x7f},
{0x2bbc,0x24}, //enhance_ratio0
{0x2bbd,0x24},
{0x2bbe,0x20},
{0x2bbf,0x12},
{0x2bc0,0x0e},
{0x2bc1,0x0e},
{0x2bc2,0x0c},
{0x2bc3,0x0c},

//Auto_Sat 
{0xfffe,0x14},
{0x026c,0x00}, //auto_sat_enable
{0x026d,0x20},
{0x026e,0x50}, //sat_U0
{0x026f,0x40},
{0x0270,0x40},
{0x0271,0x30},
{0x0272,0x30},
{0x0273,0x30},
{0x0274,0x50}, //sat_V0
{0x0275,0x3a},
{0x0276,0x3a},
{0x0277,0x2a},
{0x0278,0x2a},
{0x0279,0x2a},

//TOP      
{0xfffe,0x14},
{0x002b,0x01}, //AE_enable
{0x002c,0x01}, //awb_enable
{0x002f,0x01}, //wdr_enable
{0x0030,0x01}, //lenc_enable
{0x0620,0x01},
{0x0621,0x01},

{0xfffe,0x30},
{0x0000,0x67},
{0x0001,0x82},
{0x0002,0x96},
{0x0003,0x31},
{0x0004,0x90},
{0x2300,0x0a},

{0x0019,0x08},
{0x071c,0x0a},
{0x1700,0x09},
{0x1701,0x38},
{0x1702,0x30},
{0x1704,0x23}, //contrast_ygain
{0x1707,0x00}, //ybright

//IQ_end	
};


const  regval_list XC7022_1080_2_Init_IQ_regs[] = {
//Initial_start

{0xfffd,0x80},
{0xfffe,0x50},
{0x001c,0xff},
{0x001d,0xff},
{0x001e,0xff},
{0x001f,0xff}, //clk_en
{0x0018,0x00},
{0x0019,0x00},
{0x001a,0x00},
{0x001b,0x00}, //reset

{0x0030,0x44},
{0x0031,0x91},
{0x0032,0x43},
{0x0033,0x70},

{0x0020,0x02},
{0x0021,0x0d},
{0x0022,0x01},
{0x0023,0x85},
{0x0024,0x03},
{0x0025,0x06},
{0x0026,0x01},
{0x0027,0x06},
{0x0028,0x01},
{0x0029,0x00},
{0x002a,0x01},
{0x002b,0x05},
{0x002e,0x02}, //PLL

{0xfffe,0x50},
{0x0050,0x02},
{0x0054,0x02},
{0x0058,0x02}, //GPIO_Ctr

{0xfffe,0x50},
{0x00bc,0x19},
{0x0090,0x38},

{0x0200,0x0f}, //mipi_rx1_pad
{0x0201,0x00},
{0x0202,0x80},
{0x0203,0x01},

{0xfffe,0x26},
{0x8000,0x1d}, //colorbar
{0x8001,0x80},
{0x8002,0x07},
{0x8003,0x38},
{0x8004,0x04},
{0x8005,0x03},
{0x8006,0x05},
{0x8007,0x99},
{0x8008,0x14},
{0x8009,0x04},

{0xfffe,0x26},
{0x8010,0x05}, //before_isp_crop
{0x8012,0x80},
{0x8013,0x07},
{0x8014,0x38},
{0x8015,0x04},
{0x8016,0x00},
{0x8017,0x00},
{0x8018,0x01},
{0x8019,0x00},

{0xfffe,0x30},
{0x0000,0x01}, //isp0_set
{0x0001,0x00},
{0x0002,0x10},
{0x0003,0x20},
{0x0004,0x10},
{0x0019,0x08},
{0x0050,0x20}, //dummy_line

{0x005e,0x7F},
{0x005f,0x07},
{0x0060,0x37},
{0x0061,0x04},
{0x0064,0x80},
{0x0065,0x07},
{0x0066,0x38},
{0x0067,0x04},

{0x0006,0x07},
{0x0007,0x80},
{0x0008,0x04},
{0x0009,0x38},
{0x000a,0x07},
{0x000b,0x80},
{0x000c,0x04},
{0x000d,0x38},

{0x001e,0x07}, //isp_scale
{0x001f,0x80},
{0x0020,0x04},
{0x0021,0x38},

{0x007e,0x07},
{0x007f,0x80},
{0x0080,0x04},
{0x0081,0x38},
{0x0082,0x00},

{0xfffe,0x30},
{0x1a00,0x00}, //isp_crop
{0x1a01,0x00},
{0x1a02,0x00},
{0x1a03,0x00},
{0x1a04,0x07},
{0x1a05,0x80},
{0x1a06,0x04},
{0x1a07,0x38},
{0x1a08,0x00},

{0xfffe,0x26},
{0x0000,0x20}, //mipi_rx_lane
{0x0009,0xc4}, //mipi_rx_set

{0xfffe,0x26},
{0x2019,0x07}, //mipi_tx
{0x201a,0x80},
{0x201b,0x04},
{0x201c,0x38},
{0x201d,0x00},
{0x201e,0x00},
{0x201f,0x00},
{0x2020,0x00},

{0x2015,0x80},
{0x2017,0x1e},
{0x2018,0x00},
{0x2023,0x03}, //mipi_tx_set

{0xfffe,0x2c},
{0x0000,0x00}, //stitch
{0x0008,0x10},

{0x0044,0x08}, //fifo
{0x0045,0x04},
{0x0048,0x0E},
{0x0049,0xF0},

{0xfffe,0x2e},
{0x0000,0x00}, //retiming
{0x0001,0xcc},
{0x0002,0x00},
{0x0003,0x01},
{0x0004,0xe0},

{0xfffe,0x30},
{0x006c,0x80}, //pixel_order
{0x1800,0x10},

{0xfffe,0x50},
{0x0226,0x02}, //rx2_off

{0xfffe,0x25},
{0x0002,0xf0}, //i2c_master_speed

{0xfffe,0x2d},
{0x0000,0x88}, //hispi_set
{0x0001,0x88},
{0x0002,0x0c},
{0x0003,0x39},
{0x0004,0x04},
{0x0005,0x80},
{0x0006,0x07},
{0x0007,0x00},
{0x0008,0x0f},
{0x0009,0x10},
{0x000a,0x00},
{0x0013,0xc0},
{0x0014,0x80},
{0x0015,0xe0},
{0x0016,0xa0},
{0x1000,0x88},
{0x1001,0x88},
{0x1002,0x0c},
{0x1003,0x38},
{0x1004,0x04},
{0x1005,0x80},
{0x1006,0x07},
{0x1007,0x10},
{0x1008,0x00},
{0x1009,0x10},
{0x100a,0x00},
{0x1013,0xc0},
{0x1014,0x80},
{0x1015,0xe0},
{0x1016,0xa0},
{0x000b,0x80},
{0x100b,0x80},
{0x000b,0x00},
{0x100b,0x00},

//Initial_end

//patch_start
//以下patch setting需根据实际需求或先前参数添加进来
{0xfffd, 0x80},
{0xfffe, 0x50},
{0x000e, 0x54},
{0xfffe, 0x14},
{0x0006, 0x09},
{0x0007, 0x44},
{0x0014, 0x00},
{0x0015, 0x14},
{0x0016, 0x24},
{0x0017, 0xf4},
{0x2114, 0x9c},
{0x2115, 0x21},
{0x2116, 0xff},
{0x2117, 0xf4},
{0x2118, 0xd4},
{0x2119, 0x01},
{0x211a, 0x48},
{0x211b, 0x00},
{0x211c, 0xd4},
{0x211d, 0x01},
{0x211e, 0x50},
{0x211f, 0x04},
{0x2120, 0xd4},
{0x2121, 0x01},
{0x2122, 0x60},
{0x2123, 0x08},
{0x2124, 0x07},
{0x2125, 0xfb},
{0x2126, 0x07},
{0x2127, 0xa5},
{0x2128, 0x15},
{0x2129, 0x00},
{0x212a, 0x00},
{0x212b, 0x00},
{0x212c, 0x84},
{0x212d, 0x6b},
{0x212e, 0x00},
{0x212f, 0x08},
{0x2130, 0x95},
{0x2131, 0x43},
{0x2132, 0x01},
{0x2133, 0x0e},
{0x2134, 0xbc},
{0x2135, 0x4a},
{0x2136, 0x00},
{0x2137, 0x55},
{0x2138, 0x10},
{0x2139, 0x00},
{0x213a, 0x00},
{0x213b, 0x29},
{0x213c, 0x9c},
{0x213d, 0x60},
{0x213e, 0x31},
{0x213f, 0x00},
{0x2140, 0x9c},
{0x2141, 0x80},
{0x2142, 0x00},
{0x2143, 0x00},
{0x2144, 0x07},
{0x2145, 0xfb},
{0x2146, 0x17},
{0x2147, 0x71},
{0x2148, 0x9c},
{0x2149, 0xa0},
{0x214a, 0x00},
{0x214b, 0x02},
{0x214c, 0xbc},
{0x214d, 0x4a},
{0x214e, 0x00},
{0x214f, 0x3c},
{0x2150, 0x10},
{0x2151, 0x00},
{0x2152, 0x00},
{0x2153, 0x5b},
{0x2154, 0xbc},
{0x2155, 0x4a},
{0x2156, 0x00},
{0x2157, 0x3f},
{0x2158, 0xa8},
{0x2159, 0x8a},
{0x215a, 0x00},
{0x215b, 0x00},
{0x215c, 0x9c},
{0x215d, 0x60},
{0x215e, 0x04},
{0x215f, 0x00},
{0x2160, 0x9d},
{0x2161, 0x80},
{0x2162, 0x00},
{0x2163, 0x00},
{0x2164, 0x07},
{0x2165, 0xfb},
{0x2166, 0x78},
{0x2167, 0x21},
{0x2168, 0x15},
{0x2169, 0x00},
{0x216a, 0x00},
{0x216b, 0x00},
{0x216c, 0x9c},
{0x216d, 0x60},
{0x216e, 0x00},
{0x216f, 0x20},
{0x2170, 0xe0},
{0x2171, 0x63},
{0x2172, 0x58},
{0x2173, 0x02},
{0x2174, 0xa5},
{0x2175, 0x43},
{0x2176, 0xff},
{0x2177, 0xff},
{0x2178, 0x18},
{0x2179, 0x60},
{0x217a, 0x00},
{0x217b, 0x14},
{0x217c, 0xa8},
{0x217d, 0x63},
{0x217e, 0x5d},
{0x217f, 0x00},
{0x2180, 0x8c},
{0x2181, 0x63},
{0x2182, 0x00},
{0x2183, 0x00},
{0x2184, 0xbc},
{0x2185, 0x03},
{0x2186, 0x00},
{0x2187, 0x00},
{0x2188, 0x10},
{0x2189, 0x00},
{0x218a, 0x00},
{0x218b, 0x5b},
{0x218c, 0x15},
{0x218d, 0x00},
{0x218e, 0x00},
{0x218f, 0x00},
{0x2190, 0x9c},
{0x2191, 0x60},
{0x2192, 0x30},
{0x2193, 0x96},
{0x2194, 0x9c},
{0x2195, 0x80},
{0x2196, 0x04},
{0x2197, 0x80},
{0x2198, 0x07},
{0x2199, 0xfb},
{0x219a, 0x17},
{0x219b, 0x5c},
{0x219c, 0x9c},
{0x219d, 0xa0},
{0x219e, 0x00},
{0x219f, 0x02},
{0x21a0, 0x9c},
{0x21a1, 0x60},
{0x21a2, 0x30},
{0x21a3, 0x98},
{0x21a4, 0x9c},
{0x21a5, 0x80},
{0x21a6, 0x04},
{0x21a7, 0x80},
{0x21a8, 0x07},
{0x21a9, 0xfb},
{0x21aa, 0x17},
{0x21ab, 0x58},
{0x21ac, 0x9c},
{0x21ad, 0xa0},
{0x21ae, 0x00},
{0x21af, 0x02},
{0x21b0, 0x9c},
{0x21b1, 0x60},
{0x21b2, 0x32},
{0x21b3, 0x02},
{0x21b4, 0x9c},
{0x21b5, 0x80},
{0x21b6, 0x00},
{0x21b7, 0x80},
{0x21b8, 0x07},
{0x21b9, 0xfb},
{0x21ba, 0x17},
{0x21bb, 0x54},
{0x21bc, 0x9c},
{0x21bd, 0xa0},
{0x21be, 0x00},
{0x21bf, 0x02},
{0x21c0, 0x9c},
{0x21c1, 0x60},
{0x21c2, 0x32},
{0x21c3, 0x06},
{0x21c4, 0x9c},
{0x21c5, 0x80},
{0x21c6, 0x0b},
{0x21c7, 0x08},
{0x21c8, 0x07},
{0x21c9, 0xfb},
{0x21ca, 0x17},
{0x21cb, 0x50},
{0x21cc, 0x9c},
{0x21cd, 0xa0},
{0x21ce, 0x00},
{0x21cf, 0x02},
{0x21d0, 0x9c},
{0x21d1, 0x60},
{0x21d2, 0x32},
{0x21d3, 0x08},
{0x21d4, 0x00},
{0x21d5, 0x00},
{0x21d6, 0x00},
{0x21d7, 0x59},
{0x21d8, 0x9c},
{0x21d9, 0x80},
{0x21da, 0x1e},
{0x21db, 0x13},
{0x21dc, 0x9c},
{0x21dd, 0x80},
{0x21de, 0x00},
{0x21df, 0x04},
{0x21e0, 0x07},
{0x21e1, 0xfb},
{0x21e2, 0x17},
{0x21e3, 0x4a},
{0x21e4, 0x9c},
{0x21e5, 0xa0},
{0x21e6, 0x00},
{0x21e7, 0x02},
{0x21e8, 0xb8},
{0x21e9, 0x6a},
{0x21ea, 0x00},
{0x21eb, 0x05},
{0x21ec, 0x07},
{0x21ed, 0xfb},
{0x21ee, 0x77},
{0x21ef, 0xff},
{0x21f0, 0x9c},
{0x21f1, 0x80},
{0x21f2, 0x00},
{0x21f3, 0x56},
{0x21f4, 0xa5},
{0x21f5, 0x4b},
{0x21f6, 0xff},
{0x21f7, 0xff},
{0x21f8, 0xbc},
{0x21f9, 0xaa},
{0x21fa, 0x00},
{0x21fb, 0xff},
{0x21fc, 0x10},
{0x21fd, 0x00},
{0x21fe, 0x00},
{0x21ff, 0x28},
{0x2200, 0xbc},
{0x2201, 0xaa},
{0x2202, 0x00},
{0x2203, 0x7f},
{0x2204, 0xa8},
{0x2205, 0x8a},
{0x2206, 0x00},
{0x2207, 0x00},
{0x2208, 0x9c},
{0x2209, 0x60},
{0x220a, 0x20},
{0x220b, 0x00},
{0x220c, 0x9d},
{0x220d, 0x80},
{0x220e, 0x00},
{0x220f, 0x03},
{0x2210, 0x07},
{0x2211, 0xfb},
{0x2212, 0x77},
{0x2213, 0xf6},
{0x2214, 0x15},
{0x2215, 0x00},
{0x2216, 0x00},
{0x2217, 0x00},
{0x2218, 0x9c},
{0x2219, 0x60},
{0x221a, 0x00},
{0x221b, 0x20},
{0x221c, 0xe0},
{0x221d, 0x63},
{0x221e, 0x58},
{0x221f, 0x02},
{0x2220, 0xa5},
{0x2221, 0x43},
{0x2222, 0xff},
{0x2223, 0xff},
{0x2224, 0xbc},
{0x2225, 0xaa},
{0x2226, 0x00},
{0x2227, 0x0f},
{0x2228, 0x10},
{0x2229, 0x00},
{0x222a, 0x00},
{0x222b, 0x04},
{0x222c, 0x9c},
{0x222d, 0x6c},
{0x222e, 0x00},
{0x222f, 0x01},
{0x2230, 0x9d},
{0x2231, 0x40},
{0x2232, 0x00},
{0x2233, 0x00},
{0x2234, 0xa5},
{0x2235, 0x83},
{0x2236, 0xff},
{0x2237, 0xff},
{0x2238, 0x18},
{0x2239, 0x60},
{0x223a, 0x00},
{0x223b, 0x14},
{0x223c, 0xa8},
{0x223d, 0x63},
{0x223e, 0x5d},
{0x223f, 0x00},
{0x2240, 0x8c},
{0x2241, 0x63},
{0x2242, 0x00},
{0x2243, 0x00},
{0x2244, 0xbc},
{0x2245, 0x03},
{0x2246, 0x00},
{0x2247, 0x00},
{0x2248, 0x10},
{0x2249, 0x00},
{0x224a, 0x00},
{0x224b, 0x24},
{0x224c, 0x15},
{0x224d, 0x00},
{0x224e, 0x00},
{0x224f, 0x00},
{0x2250, 0x9c},
{0x2251, 0x60},
{0x2252, 0x30},
{0x2253, 0x96},
{0x2254, 0x9c},
{0x2255, 0x80},
{0x2256, 0x07},
{0x2257, 0x80},
{0x2258, 0x07},
{0x2259, 0xfb},
{0x225a, 0x17},
{0x225b, 0x2c},
{0x225c, 0x9c},
{0x225d, 0xa0},
{0x225e, 0x00},
{0x225f, 0x02},
{0x2260, 0x9c},
{0x2261, 0x60},
{0x2262, 0x30},
{0x2263, 0x98},
{0x2264, 0x9c},
{0x2265, 0x80},
{0x2266, 0x07},
{0x2267, 0x80},
{0x2268, 0x07},
{0x2269, 0xfb},
{0x226a, 0x17},
{0x226b, 0x28},
{0x226c, 0x9c},
{0x226d, 0xa0},
{0x226e, 0x00},
{0x226f, 0x02},
{0x2270, 0x9c},
{0x2271, 0x60},
{0x2272, 0x32},
{0x2273, 0x02},
{0x2274, 0x9c},
{0x2275, 0x80},
{0x2276, 0x00},
{0x2277, 0xb0},
{0x2278, 0x07},
{0x2279, 0xfb},
{0x227a, 0x17},
{0x227b, 0x24},
{0x227c, 0x9c},
{0x227d, 0xa0},
{0x227e, 0x00},
{0x227f, 0x02},
{0x2280, 0x9c},
{0x2281, 0x60},
{0x2282, 0x32},
{0x2283, 0x06},
{0x2284, 0x9c},
{0x2285, 0x80},
{0x2286, 0x1c},
{0x2287, 0x0e},
{0x2288, 0x07},
{0x2289, 0xfb},
{0x228a, 0x17},
{0x228b, 0x20},
{0x228c, 0x9c},
{0x228d, 0xa0},
{0x228e, 0x00},
{0x228f, 0x02},
{0x2290, 0x9c},
{0x2291, 0x60},
{0x2292, 0x32},
{0x2293, 0x08},
{0x2294, 0x00},
{0x2295, 0x00},
{0x2296, 0x00},
{0x2297, 0x29},
{0x2298, 0x9c},
{0x2299, 0x80},
{0x229a, 0x4e},
{0x229b, 0x39},
{0x229c, 0x0c},
{0x229d, 0x00},
{0x229e, 0x00},
{0x229f, 0x1f},
{0x22a0, 0xa8},
{0x22a1, 0x8a},
{0x22a2, 0x00},
{0x22a3, 0x00},
{0x22a4, 0xbc},
{0x22a5, 0xaa},
{0x22a6, 0x00},
{0x22a7, 0x3f},
{0x22a8, 0x10},
{0x22a9, 0x00},
{0x22aa, 0x00},
{0x22ab, 0x21},
{0x22ac, 0x15},
{0x22ad, 0x00},
{0x22ae, 0x00},
{0x22af, 0x00},
{0x22b0, 0x9c},
{0x22b1, 0x60},
{0x22b2, 0x08},
{0x22b3, 0x00},
{0x22b4, 0x03},
{0x22b5, 0xff},
{0x22b6, 0xff},
{0x22b7, 0xd7},
{0x22b8, 0x9d},
{0x22b9, 0x80},
{0x22ba, 0x00},
{0x22bb, 0x01},
{0x22bc, 0x0c},
{0x22bd, 0x00},
{0x22be, 0x00},
{0x22bf, 0x15},
{0x22c0, 0x9d},
{0x22c1, 0x80},
{0x22c2, 0x00},
{0x22c3, 0x01},
{0x22c4, 0xbc},
{0x22c5, 0x4a},
{0x22c6, 0x00},
{0x22c7, 0x51},
{0x22c8, 0x10},
{0x22c9, 0x00},
{0x22ca, 0x00},
{0x22cb, 0x17},
{0x22cc, 0xa8},
{0x22cd, 0x8a},
{0x22ce, 0x00},
{0x22cf, 0x00},
{0x22d0, 0x03},
{0x22d1, 0xff},
{0x22d2, 0xff},
{0x22d3, 0xa5},
{0x22d4, 0x9c},
{0x22d5, 0x60},
{0x22d6, 0x08},
{0x22d7, 0x00},
{0x22d8, 0x9c},
{0x22d9, 0x60},
{0x22da, 0x30},
{0x22db, 0x96},
{0x22dc, 0x9c},
{0x22dd, 0x80},
{0x22de, 0x00},
{0x22df, 0x80},
{0x22e0, 0x07},
{0x22e1, 0xfb},
{0x22e2, 0x17},
{0x22e3, 0x0a},
{0x22e4, 0x9c},
{0x22e5, 0xa0},
{0x22e6, 0x00},
{0x22e7, 0x02},
{0x22e8, 0x9c},
{0x22e9, 0x60},
{0x22ea, 0x30},
{0x22eb, 0x98},
{0x22ec, 0x03},
{0x22ed, 0xff},
{0x22ee, 0xff},
{0x22ef, 0xdf},
{0x22f0, 0x9c},
{0x22f1, 0x80},
{0x22f2, 0x00},
{0x22f3, 0x80},
{0x22f4, 0x9c},
{0x22f5, 0x60},
{0x22f6, 0x30},
{0x22f7, 0x96},
{0x22f8, 0x9c},
{0x22f9, 0x80},
{0x22fa, 0x00},
{0x22fb, 0x80},
{0x22fc, 0x07},
{0x22fd, 0xfb},
{0x22fe, 0x17},
{0x22ff, 0x03},
{0x2300, 0x9c},
{0x2301, 0xa0},
{0x2302, 0x00},
{0x2303, 0x02},
{0x2304, 0x9c},
{0x2305, 0x60},
{0x2306, 0x30},
{0x2307, 0x98},
{0x2308, 0x03},
{0x2309, 0xff},
{0x230a, 0xff},
{0x230b, 0xa8},
{0x230c, 0x9c},
{0x230d, 0x80},
{0x230e, 0x00},
{0x230f, 0x80},
{0x2310, 0x03},
{0x2311, 0xff},
{0x2312, 0xff},
{0x2313, 0x9a},
{0x2314, 0x9d},
{0x2315, 0x40},
{0x2316, 0x00},
{0x2317, 0x00},
{0x2318, 0x9c},
{0x2319, 0x60},
{0x231a, 0x10},
{0x231b, 0x00},
{0x231c, 0x03},
{0x231d, 0xff},
{0x231e, 0xff},
{0x231f, 0xbd},
{0x2320, 0x9d},
{0x2321, 0x80},
{0x2322, 0x00},
{0x2323, 0x02},
{0x2324, 0x03},
{0x2325, 0xff},
{0x2326, 0xff},
{0x2327, 0x95},
{0x2328, 0x9d},
{0x2329, 0x40},
{0x232a, 0x00},
{0x232b, 0x07},
{0x232c, 0x9c},
{0x232d, 0x60},
{0x232e, 0x04},
{0x232f, 0x00},
{0x2330, 0x03},
{0x2331, 0xff},
{0x2332, 0xff},
{0x2333, 0xb8},
{0x2334, 0x9d},
{0x2335, 0x80},
{0x2336, 0x00},
{0x2337, 0x00},
{0x2338, 0x07},
{0x2339, 0xfb},
{0x233a, 0x16},
{0x233b, 0xf4},
{0x233c, 0x9c},
{0x233d, 0xa0},
{0x233e, 0x00},
{0x233f, 0x02},
{0x2340, 0xb8},
{0x2341, 0x8c},
{0x2342, 0x00},
{0x2343, 0x04},
{0x2344, 0xa4},
{0x2345, 0xca},
{0x2346, 0x00},
{0x2347, 0x0f},
{0x2348, 0x9c},
{0x2349, 0x60},
{0x234a, 0x30},
{0x234b, 0x60},
{0x234c, 0xa4},
{0x234d, 0x84},
{0x234e, 0x00},
{0x234f, 0x70},
{0x2350, 0x9c},
{0x2351, 0xa0},
{0x2352, 0x00},
{0x2353, 0x02},
{0x2354, 0x07},
{0x2355, 0xfb},
{0x2356, 0x16},
{0x2357, 0xed},
{0x2358, 0xe0},
{0x2359, 0x84},
{0x235a, 0x30},
{0x235b, 0x00},
{0x235c, 0x85},
{0x235d, 0x21},
{0x235e, 0x00},
{0x235f, 0x00},
{0x2360, 0x85},
{0x2361, 0x41},
{0x2362, 0x00},
{0x2363, 0x04},
{0x2364, 0x85},
{0x2365, 0x81},
{0x2366, 0x00},
{0x2367, 0x08},
{0x2368, 0x44},
{0x2369, 0x00},
{0x236a, 0x48},
{0x236b, 0x00},
{0x236c, 0x9c},
{0x236d, 0x21},
{0x236e, 0x00},
{0x236f, 0x0c},
{0x2370, 0x9c},
{0x2371, 0x21},
{0x2372, 0xff},
{0x2373, 0xf8},
{0x2374, 0xd4},
{0x2375, 0x01},
{0x2376, 0x48},
{0x2377, 0x00},
{0x2378, 0xd4},
{0x2379, 0x01},
{0x237a, 0x50},
{0x237b, 0x04},
{0x237c, 0x07},
{0x237d, 0xfb},
{0x237e, 0x07},
{0x237f, 0x0f},
{0x2380, 0x15},
{0x2381, 0x00},
{0x2382, 0x00},
{0x2383, 0x00},
{0x2384, 0x85},
{0x2385, 0x4b},
{0x2386, 0x00},
{0x2387, 0x08},
{0x2388, 0x18},
{0x2389, 0xa0},
{0x238a, 0x00},
{0x238b, 0x14},
{0x238c, 0xa8},
{0x238d, 0xa5},
{0x238e, 0x5d},
{0x238f, 0x08},
{0x2390, 0x84},
{0x2391, 0x6a},
{0x2392, 0x01},
{0x2393, 0x08},
{0x2394, 0x84},
{0x2395, 0x8a},
{0x2396, 0x01},
{0x2397, 0x0c},
{0x2398, 0xb8},
{0x2399, 0xc3},
{0x239a, 0x00},
{0x239b, 0x44},
{0x239c, 0xb8},
{0x239d, 0x84},
{0x239e, 0x00},
{0x239f, 0x41},
{0x23a0, 0x84},
{0x23a1, 0xa5},
{0x23a2, 0x00},
{0x23a3, 0x00},
{0x23a4, 0x94},
{0x23a5, 0x6a},
{0x23a6, 0x01},
{0x23a7, 0x00},
{0x23a8, 0xe0},
{0x23a9, 0x84},
{0x23aa, 0x33},
{0x23ab, 0x06},
{0x23ac, 0x07},
{0x23ad, 0xfb},
{0x23ae, 0x77},
{0x23af, 0xa8},
{0x23b0, 0xe0},
{0x23b1, 0x63},
{0x23b2, 0x2b},
{0x23b3, 0x06},
{0x23b4, 0x18},
{0x23b5, 0x60},
{0x23b6, 0x00},
{0x23b7, 0x14},
{0x23b8, 0xa8},
{0x23b9, 0x63},
{0x23ba, 0x5d},
{0x23bb, 0x04},
{0x23bc, 0xd4},
{0x23bd, 0x03},
{0x23be, 0x58},
{0x23bf, 0x00},
{0x23c0, 0x18},
{0x23c1, 0x60},
{0x23c2, 0x00},
{0x23c3, 0x14},
{0x23c4, 0xa8},
{0x23c5, 0x63},
{0x23c6, 0x5d},
{0x23c7, 0x0c},
{0x23c8, 0x94},
{0x23c9, 0x63},
{0x23ca, 0x00},
{0x23cb, 0x00},
{0x23cc, 0xe4},
{0x23cd, 0xa3},
{0x23ce, 0x58},
{0x23cf, 0x00},
{0x23d0, 0x10},
{0x23d1, 0x00},
{0x23d2, 0x00},
{0x23d3, 0x05},
{0x23d4, 0x15},
{0x23d5, 0x00},
{0x23d6, 0x00},
{0x23d7, 0x00},
{0x23d8, 0x94},
{0x23d9, 0x6a},
{0x23da, 0x00},
{0x23db, 0x66},
{0x23dc, 0x00},
{0x23dd, 0x00},
{0x23de, 0x00},
{0x23df, 0x2a},
{0x23e0, 0xdc},
{0x23e1, 0x0a},
{0x23e2, 0x18},
{0x23e3, 0x54},
{0x23e4, 0x18},
{0x23e5, 0x60},
{0x23e6, 0x00},
{0x23e7, 0x14},
{0x23e8, 0xa8},
{0x23e9, 0x63},
{0x23ea, 0x5d},
{0x23eb, 0x0e},
{0x23ec, 0x94},
{0x23ed, 0x63},
{0x23ee, 0x00},
{0x23ef, 0x00},
{0x23f0, 0xe4},
{0x23f1, 0xa3},
{0x23f2, 0x58},
{0x23f3, 0x00},
{0x23f4, 0x10},
{0x23f5, 0x00},
{0x23f6, 0x00},
{0x23f7, 0x04},
{0x23f8, 0x15},
{0x23f9, 0x00},
{0x23fa, 0x00},
{0x23fb, 0x00},
{0x23fc, 0x03},
{0x23fd, 0xff},
{0x23fe, 0xff},
{0x23ff, 0xf8},
{0x2400, 0x94},
{0x2401, 0x6a},
{0x2402, 0x00},
{0x2403, 0x68},
{0x2404, 0x18},
{0x2405, 0x60},
{0x2406, 0x00},
{0x2407, 0x14},
{0x2408, 0xa8},
{0x2409, 0x63},
{0x240a, 0x5d},
{0x240b, 0x10},
{0x240c, 0x94},
{0x240d, 0x63},
{0x240e, 0x00},
{0x240f, 0x00},
{0x2410, 0xe4},
{0x2411, 0xa3},
{0x2412, 0x58},
{0x2413, 0x00},
{0x2414, 0x0c},
{0x2415, 0x00},
{0x2416, 0x00},
{0x2417, 0x0a},
{0x2418, 0x15},
{0x2419, 0x00},
{0x241a, 0x00},
{0x241b, 0x00},
{0x241c, 0x18},
{0x241d, 0x60},
{0x241e, 0x00},
{0x241f, 0x14},
{0x2420, 0xa8},
{0x2421, 0x63},
{0x2422, 0x5d},
{0x2423, 0x12},
{0x2424, 0x94},
{0x2425, 0x63},
{0x2426, 0x00},
{0x2427, 0x00},
{0x2428, 0xe4},
{0x2429, 0xa3},
{0x242a, 0x58},
{0x242b, 0x00},
{0x242c, 0x10},
{0x242d, 0x00},
{0x242e, 0x00},
{0x242f, 0x06},
{0x2430, 0x15},
{0x2431, 0x00},
{0x2432, 0x00},
{0x2433, 0x00},
{0x2434, 0x03},
{0x2435, 0xff},
{0x2436, 0xff},
{0x2437, 0xea},
{0x2438, 0x94},
{0x2439, 0x6a},
{0x243a, 0x00},
{0x243b, 0x6c},
{0x243c, 0x03},
{0x243d, 0xff},
{0x243e, 0xff},
{0x243f, 0xe8},
{0x2440, 0x94},
{0x2441, 0x6a},
{0x2442, 0x00},
{0x2443, 0x6a},
{0x2444, 0x18},
{0x2445, 0x60},
{0x2446, 0x00},
{0x2447, 0x14},
{0x2448, 0xa8},
{0x2449, 0x63},
{0x244a, 0x5d},
{0x244b, 0x14},
{0x244c, 0x94},
{0x244d, 0x63},
{0x244e, 0x00},
{0x244f, 0x00},
{0x2450, 0xe4},
{0x2451, 0xa3},
{0x2452, 0x58},
{0x2453, 0x00},
{0x2454, 0x0c},
{0x2455, 0x00},
{0x2456, 0x00},
{0x2457, 0x0a},
{0x2458, 0x15},
{0x2459, 0x00},
{0x245a, 0x00},
{0x245b, 0x00},
{0x245c, 0x18},
{0x245d, 0x60},
{0x245e, 0x00},
{0x245f, 0x14},
{0x2460, 0xa8},
{0x2461, 0x63},
{0x2462, 0x5d},
{0x2463, 0x16},
{0x2464, 0x94},
{0x2465, 0x63},
{0x2466, 0x00},
{0x2467, 0x00},
{0x2468, 0xe4},
{0x2469, 0xa3},
{0x246a, 0x58},
{0x246b, 0x00},
{0x246c, 0x10},
{0x246d, 0x00},
{0x246e, 0x00},
{0x246f, 0x06},
{0x2470, 0x15},
{0x2471, 0x00},
{0x2472, 0x00},
{0x2473, 0x00},
{0x2474, 0x03},
{0x2475, 0xff},
{0x2476, 0xff},
{0x2477, 0xda},
{0x2478, 0x94},
{0x2479, 0x6a},
{0x247a, 0x00},
{0x247b, 0x70},
{0x247c, 0x03},
{0x247d, 0xff},
{0x247e, 0xff},
{0x247f, 0xd8},
{0x2480, 0x94},
{0x2481, 0x6a},
{0x2482, 0x00},
{0x2483, 0x6e},
{0x2484, 0x85},
{0x2485, 0x21},
{0x2486, 0x00},
{0x2487, 0x00},
{0x2488, 0x85},
{0x2489, 0x41},
{0x248a, 0x00},
{0x248b, 0x04},
{0x248c, 0x44},
{0x248d, 0x00},
{0x248e, 0x48},
{0x248f, 0x00},
{0x2490, 0x9c},
{0x2491, 0x21},
{0x2492, 0x00},
{0x2493, 0x08},
{0x2494, 0x9c},
{0x2495, 0x21},
{0x2496, 0xff},
{0x2497, 0xfc},
{0x2498, 0xd4},
{0x2499, 0x01},
{0x249a, 0x48},
{0x249b, 0x00},
{0x249c, 0xbc},
{0x249d, 0x03},
{0x249e, 0x01},
{0x249f, 0x03},
{0x24a0, 0x10},
{0x24a1, 0x00},
{0x24a2, 0x00},
{0x24a3, 0x06},
{0x24a4, 0xbc},
{0x24a5, 0x03},
{0x24a6, 0x04},
{0x24a7, 0x0c},
{0x24a8, 0x0c},
{0x24a9, 0x00},
{0x24aa, 0x00},
{0x24ab, 0x10},
{0x24ac, 0x15},
{0x24ad, 0x00},
{0x24ae, 0x00},
{0x24af, 0x00},
{0x24b0, 0x00},
{0x24b1, 0x00},
{0x24b2, 0x00},
{0x24b3, 0x0c},
{0x24b4, 0x15},
{0x24b5, 0x00},
{0x24b6, 0x00},
{0x24b7, 0x00},
{0x24b8, 0x18},
{0x24b9, 0x60},
{0x24ba, 0x00},
{0x24bb, 0x14},
{0x24bc, 0xa8},
{0x24bd, 0x63},
{0x24be, 0x5d},
{0x24bf, 0x01},
{0x24c0, 0x8c},
{0x24c1, 0x63},
{0x24c2, 0x00},
{0x24c3, 0x00},
{0x24c4, 0xbc},
{0x24c5, 0x23},
{0x24c6, 0x00},
{0x24c7, 0x01},
{0x24c8, 0x10},
{0x24c9, 0x00},
{0x24ca, 0x00},
{0x24cb, 0x08},
{0x24cc, 0x15},
{0x24cd, 0x00},
{0x24ce, 0x00},
{0x24cf, 0x00},
{0x24d0, 0x07},
{0x24d1, 0xff},
{0x24d2, 0xff},
{0x24d3, 0xa8},
{0x24d4, 0x15},
{0x24d5, 0x00},
{0x24d6, 0x00},
{0x24d7, 0x00},
{0x24d8, 0x00},
{0x24d9, 0x00},
{0x24da, 0x00},
{0x24db, 0x04},
{0x24dc, 0x15},
{0x24dd, 0x00},
{0x24de, 0x00},
{0x24df, 0x00},
{0x24e0, 0x07},
{0x24e1, 0xff},
{0x24e2, 0xff},
{0x24e3, 0x0d},
{0x24e4, 0x15},
{0x24e5, 0x00},
{0x24e6, 0x00},
{0x24e7, 0x00},
{0x24e8, 0x85},
{0x24e9, 0x21},
{0x24ea, 0x00},
{0x24eb, 0x00},
{0x24ec, 0x44},
{0x24ed, 0x00},
{0x24ee, 0x48},
{0x24ef, 0x00},
{0x24f0, 0x9c},
{0x24f1, 0x21},
{0x24f2, 0x00},
{0x24f3, 0x04},
{0x24f4, 0x9c},
{0x24f5, 0x21},
{0x24f6, 0xff},
{0x24f7, 0xfc},
{0x24f8, 0xd4},
{0x24f9, 0x01},
{0x24fa, 0x48},
{0x24fb, 0x00},
{0x24fc, 0x07},
{0x24fd, 0xff},
{0x24fe, 0xff},
{0x24ff, 0xe6},
{0x2500, 0x15},
{0x2501, 0x00},
{0x2502, 0x00},
{0x2503, 0x00},
{0x2504, 0x9d},
{0x2505, 0x60},
{0x2506, 0x00},
{0x2507, 0x00},
{0x2508, 0x85},
{0x2509, 0x21},
{0x250a, 0x00},
{0x250b, 0x00},
{0x250c, 0x44},
{0x250d, 0x00},
{0x250e, 0x48},
{0x250f, 0x00},
{0x2510, 0x9c},
{0x2511, 0x21},
{0x2512, 0x00},
{0x2513, 0x04},
{0x2514, 0x00},
{0x2515, 0x00},
{0x2516, 0x00},
{0x2517, 0x00},
{0x2518, 0x00},
{0x2519, 0x00},
{0x251a, 0x00},
{0x251b, 0x00},
{0x251c, 0x00},
{0x251d, 0x00},
{0x251e, 0x00},
{0x251f, 0x00},
{0x2520, 0x00},
{0x2521, 0x00},
{0x2522, 0x00},
{0x2523, 0x00},
{0x2524, 0x00},
{0x2525, 0x00},
{0x2526, 0x00},
{0x2527, 0x00},
{0x2528, 0x00},
{0x2529, 0x00},
{0x252a, 0x00},
{0x252b, 0x00},

{0xfffe,0x14},
{0x5d00,0x01},
{0x5d01,0x01},
{0x5d08,0x00},
{0x5d09,0x00},
{0x5d0a,0x27},
{0x5d0b,0x10},

{0x5d0c,0x02}, //室内 0-32 对应 b2 b3
{0x5d0d,0x00},

{0x5d0e,0x04}, //室内 2-4 对应 b4 b5
{0x5d0f,0x00},

{0x5d10,0x08}, //逆光 4-7 对应 b6 b7
{0x5d11,0x00},

{0x5d12,0x20}, //室外+逆光 8-20 对应 b8 b9
{0x5d13,0x00},

{0x5d14,0xc0}, //室外 20-c0 对应 ba bb      
{0x5d15,0x00},

{0x5d16,0xff},
{0x5d17,0x00}, //室外大太阳逆光 c0-ff 对应 bc bd

{0xfffe,0x50},
{0x0137,0x99},

//patch_end

//IQ_start 
//AE       
{0xfffe,0x30},
{0x1f00,0x00},
{0x1f01,0x80}, //win_Xstart
{0x1f02,0x00},
{0x1f03,0x60}, //win_Ystart
{0x1f04,0x06},
{0x1f05,0x80}, //win_width
{0x1f06,0x03},
{0x1f07,0x78}, //win_height
{0x1f08,0x03},
{0x0051,0x01},

{0xfffe,0x14},
{0x000e,0x00}, //isp0_used_i2c
{0x010e,0x20}, //sensor_i2c_id
{0x010f,0x01}, //sensor_i2c_bits
{0x0110,0x05}, //type_gain
{0x0111,0x02}, //type_exp

{0x0114,0x30}, //exp_addr
{0x0115,0x12},
{0x0116,0x30},
{0x0117,0x13},
{0x0118,0x00},
{0x0119,0x00},
{0x011a,0x00},
{0x011b,0x00},

{0x011c,0xff}, //exp_mask
{0x011d,0xff},
{0x011e,0xff},
{0x011f,0xff},
{0x0120,0x00},
{0x0121,0x00},
{0x0122,0x00},
{0x0123,0x00},

{0x0134,0x00}, //gain_addr
{0x0135,0x00},
{0x0136,0x30},
{0x0137,0x61},
{0x0138,0x00},
{0x0139,0x00},
{0x013a,0x00},
{0x013b,0x00},

{0x013c,0x00}, //gain_mask
{0x013d,0x00},
{0x013e,0xff},
{0x013f,0xff},
{0x0140,0x00},
{0x0141,0x00},
{0x0142,0x00},
{0x0143,0x00},

//Area Weig}ht
{0xfffe,0x14},
{0x0055,0x10},
{0x0056,0x10},
{0x0057,0x10},
{0x0058,0x10},
{0x0059,0x10},

{0x005a,0x10},
{0x005b,0x10},
{0x005c,0x10},
{0x005d,0x10},
{0x005e,0x10},

{0x005f,0x10},
{0x0060,0x10},
{0x0061,0x10},
{0x0062,0x10},
{0x0063,0x10},

{0x0064,0x10},
{0x0065,0x10},
{0x0066,0x10},
{0x0067,0x10},
{0x0068,0x10},

{0x0069,0x10},
{0x006a,0x10},
{0x006b,0x10},
{0x006c,0x10},
{0x006d,0x10},

//Attention
{0x0088,0x00},
{0x0089,0x07},
{0x008a,0x39},
{0x008b,0xc0},
{0x0050,0x01}, //refresh

//AE base  
{0xfffe,0x14},
{0x004c,0x00}, //AEC_mode
{0x004d,0x01}, //AE_force_write

{0x00a0,0x01},
{0x00a1,0x80}, //day_target

{0x00de,0x00},
{0x00df,0x10}, //min_exp
{0x00e0,0x00},
{0x00e1,0x00},
{0x00e2,0x40},
{0x00e3,0x00}, //max_exp
{0x00fa,0x00},
{0x00fb,0x80}, //max_gain
{0x00fc,0x00},
{0x00fd,0x20}, //min_gain

{0x0104,0x00}, //flicker
{0x0105,0x01}, //min_flickerlines_en
{0x0106,0x11},
{0x0107,0xb0}, //60Hz
{0x0108,0x15},
{0x0109,0x30}, //50Hz

//AE speed }
{0x00c6,0x01}, //delay_frame
{0x0144,0x00}, //exp_delay
{0x0145,0x00}, //gain_delay
{0x0031,0x01}, //exp_mode
{0x0032,0x01}, //gain_mode

{0x00c7,0x28}, //finally_thr
{0x0218,0x00},
{0x0219,0x80},
{0x021a,0x00},
{0x021b,0x80},

{0x00ca,0x00},
{0x00cb,0x60}, //thr_low
{0x00cc,0x00},
{0x00cd,0xa0}, //thr_high
{0x00ce,0x00},
{0x00cf,0x60}, //jump_thr
{0x00d4,0x00},
{0x00d5,0x80}, //jump_mutiple
{0x00d6,0x00},
{0x00d7,0x80}, //max_jump_ratio
{0x00d9,0x00}, //max_jump_cnt
{0x00da,0x00},
{0x00db,0x00}, //luma_diff_thr_low
{0x00dc,0x03},
{0x00dd,0x00}, //luma_diff_thr_high

{0x01bc,0x00},
{0x01bd,0x60}, //thr_l_all
{0x01be,0x00},
{0x01bf,0x40}, //thr_l_avg

{0x00c8,0x01}, //total_speed
{0x0208,0x02}, //limit_speed

//AE smart }
{0x0092,0x00}, //smart_mode
{0x0093,0x00}, //analysis_mode
{0x0094,0x00}, //smart_speed_limit

{0x0095,0x00}, //PDFH_move_avg
{0x00ad,0x04}, //ATT_block_cnt
{0x01c0,0x06}, //PDFH_used_cnt

//table ref}target
{0x0022,0x1e}, //use_cur_fps

{0x01e4,0x00},
{0x01e5,0x00},
{0x01e6,0x0b},
{0x01e7,0x00}, //table0
{0x01e8,0x00},
{0x01e9,0x00},
{0x01ea,0x2c},
{0x01eb,0x00}, //table1
{0x01ec,0x00},
{0x01ed,0x00},
{0x01ee,0xb0},
{0x01ef,0x00}, //table2
{0x01f0,0x00},
{0x01f1,0x02},
{0x01f2,0xc0},
{0x01f3,0x00}, //table3
{0x01f4,0x00},
{0x01f5,0x0b},
{0x01f6,0x00},
{0x01f7,0x00}, //table4
{0x01f8,0x00},
{0x01f9,0x2c},
{0x01fa,0x00},
{0x01fb,0x00}, //table5

//reftarget}
{0x00b2,0x01},
{0x00b3,0x80}, //ref_target_table0
{0x00b4,0x01},
{0x00b5,0x80}, //ref_target_table1
{0x00b6,0x01},
{0x00b7,0xc0}, //ref_target_table2
{0x00b8,0x01},
{0x00b9,0xc0}, //ref_target_table3
{0x00ba,0x01},
{0x00bb,0x80}, //ref_target_table4
{0x00bc,0x01},
{0x00bd,0xa0}, //ref_target_table5

{0x01cb,0x00}, //avg_thr_low
{0x01cc,0x60}, //avg_thr_high
{0x01cd,0x23}, //avg_affect_val

//over expo}sure offset
{0x01d6,0x10},
{0x01d7,0x0e},
{0x01d8,0x1e},
{0x01d9,0x2c},
{0x01da,0x30},
{0x01db,0x28},

//main body} ratio table
{0x01dc,0x40},
{0x01dd,0x30},
{0x01de,0x20},
{0x01df,0x10},
{0x01e0,0x00},
{0x01e1,0x00},

{0x01b0,0x40}, //PDFL_brighten_max
{0x01b1,0x25}, //variance_affect_val
{0x01b2,0x01},
{0x01b3,0x00}, //variance_thr_low
{0x01b4,0x08},
{0x01b5,0x00}, //variance_thr_high

{0x01c6,0x30}, //PDFL_target
{0x01c7,0x1f}, //PDFH_max
{0x01c9,0x01}, //PDFH_target
{0x01ca,0x80}, //over_exp_affect_val_1
{0x01d0,0x01}, //over_exp_ref
{0x01d1,0x60}, //over_exp_affect_val_0
{0x01d2,0x08}, //under_exp_affect_val
{0x021d,0x04}, //PDFH_brighten_thr
{0x01b7,0x00}, //bright_ratio_thr_low
{0x01b8,0x20}, //bright_ratio_thr_middle
{0x01b9,0x60}, //bright_ratio_thr_high
{0x01ba,0x10}, //bright_ratio_affect

{0x00a6,0x32}, //CDF_high
{0x00a7,0x20}, //CDF_low

{0x0168,0x00},
{0x0169,0x00}, //min_avg_thr
{0x016a,0x03},
{0x016b,0x00}, //max_avg_thr
{0x016c,0x00},
{0x016d,0xa0}, //min_ATT_thr
{0x016e,0x02},
{0x016f,0x80}, //max_ATT_thr
{0x01d3,0x00}, //ATT_limit_affect_val_low
{0x01d4,0x10}, //ATT_limit_affect_val_high
{0x01d5,0x10}, //global_limit_ratio

{0x1a74,0x01}, //AE_mutiple_frame
{0x1a75,0x00}, //AE_active_frame

//LENC     }
{0xfffe,0x30},
{0x03ca,0x0c}, //lenc_scale
{0x03cb,0xcc},
{0x03cc,0x16},
{0x03cd,0xc1},
{0x03ce,0x0c},
{0x03cf,0xcc},
{0x03d0,0x0b},
{0x03d1,0x60},

{0x000e,0x00},
{0x000f,0x00},
{0x0010,0x00},
{0x0011,0x00},
{0x0012,0x80}, //lenc_skip

{0xfffe,0x14},
{0x0928,0x00},
{0x0929,0x79}, //Alight_CT_thr
{0x092a,0x00},
{0x092b,0xaa}, //Clight_CT_thr
{0x092c,0x01},
{0x092d,0x23}, //Dlight_CT_thr

{0x06e5,0x2 }, //A_light
{0x06e6,0x20},
{0x06e7,0x2a},
{0x06e8,0x2d},
{0x06e9,0x30},
{0x06ea,0x29},
{0x06eb,0x22},
{0x06ec,0x9 },
{0x06ed,0x1b},
{0x06ee,0x11},
{0x06ef,0xb },
{0x06f0,0x8 },
{0x06f1,0x7 },
{0x06f2,0xa },
{0x06f3,0xf },
{0x06f4,0x19},
{0x06f5,0x6 },
{0x06f6,0x3 },
{0x06f7,0x2 },
{0x06f8,0x1 },
{0x06f9,0x1 },
{0x06fa,0x1 },
{0x06fb,0x2 },
{0x06fc,0x4 },
{0x06fd,0x4 },
{0x06fe,0x2 },
{0x06ff,0x1 },
{0x0700,0x0 },
{0x0701,0x0 },
{0x0702,0x0 },
{0x0703,0x1 },
{0x0704,0x3 },
{0x0705,0x3 },
{0x0706,0x1 },
{0x0707,0x0 },
{0x0708,0x0 },
{0x0709,0x0 },
{0x070a,0x0 },
{0x070b,0x1 },
{0x070c,0x2 },
{0x070d,0x5 },
{0x070e,0x2 },
{0x070f,0x2 },
{0x0710,0x1 },
{0x0711,0x1 },
{0x0712,0x1 },
{0x0713,0x2 },
{0x0714,0x4 },
{0x0715,0x12},
{0x0716,0xc },
{0x0717,0x8 },
{0x0718,0x6 },
{0x0719,0x6 },
{0x071a,0x7 },
{0x071b,0xb },
{0x071c,0xe },
{0x071d,0x8 },
{0x071e,0x1b},
{0x071f,0x22},
{0x0720,0x24},
{0x0721,0x24},
{0x0722,0x20},
{0x0723,0x17},
{0x0724,0xd },
{0x0725,0x23},
{0x0726,0x19},
{0x0727,0x15},
{0x0728,0x14},
{0x0729,0x13},
{0x072a,0x13},
{0x072b,0x13},
{0x072c,0x18},
{0x072d,0xf },
{0x072e,0x11},
{0x072f,0x15},
{0x0730,0x16},
{0x0731,0x15},
{0x0732,0x11},
{0x0733,0xe },
{0x0734,0xd },
{0x0735,0xe },
{0x0736,0x15},
{0x0737,0x1b},
{0x0738,0x1d},
{0x0739,0x1a},
{0x073a,0x17},
{0x073b,0x12},
{0x073c,0xf },
{0x073d,0xf },
{0x073e,0x18},
{0x073f,0x1e},
{0x0740,0x21},
{0x0741,0x20},
{0x0742,0x1d},
{0x0743,0x18},
{0x0744,0x13},
{0x0745,0xd },
{0x0746,0x16},
{0x0747,0x1c},
{0x0748,0x20},
{0x0749,0x21},
{0x074a,0x1e},
{0x074b,0x19},
{0x074c,0x15},
{0x074d,0xc },
{0x074e,0x12},
{0x074f,0x18},
{0x0750,0x1b},
{0x0751,0x1b},
{0x0752,0x19},
{0x0753,0x15},
{0x0754,0x11},
{0x0755,0xb },
{0x0756,0xf },
{0x0757,0x12},
{0x0758,0x14},
{0x0759,0x14},
{0x075a,0x12},
{0x075b,0xf },
{0x075c,0xe },
{0x075d,0x1b},
{0x075e,0x14},
{0x075f,0x12},
{0x0760,0x12},
{0x0761,0x11},
{0x0762,0x12},
{0x0763,0x14},
{0x0764,0x17},
{0x0765,0x24},
{0x0766,0x25},
{0x0767,0x29},
{0x0768,0x2b},
{0x0769,0x2c},
{0x076a,0x2d},
{0x076b,0x2f},
{0x076c,0x33},
{0x076d,0x24},
{0x076e,0x26},
{0x076f,0x27},
{0x0770,0x2a},
{0x0771,0x2d},
{0x0772,0x2f},
{0x0773,0x31},
{0x0774,0x2f},
{0x0775,0x23},
{0x0776,0x22},
{0x0777,0x22},
{0x0778,0x23},
{0x0779,0x26},
{0x077a,0x29},
{0x077b,0x2c},
{0x077c,0x2c},
{0x077d,0x24},
{0x077e,0x22},
{0x077f,0x20},
{0x0780,0x20},
{0x0781,0x21},
{0x0782,0x23},
{0x0783,0x25},
{0x0784,0x25},
{0x0785,0x26},
{0x0786,0x23},
{0x0787,0x21},
{0x0788,0x20},
{0x0789,0x20},
{0x078a,0x22},
{0x078b,0x23},
{0x078c,0x23},
{0x078d,0x27},
{0x078e,0x24},
{0x078f,0x23},
{0x0790,0x22},
{0x0791,0x23},
{0x0792,0x24},
{0x0793,0x25},
{0x0794,0x24},
{0x0795,0x26},
{0x0796,0x26},
{0x0797,0x26},
{0x0798,0x27},
{0x0799,0x28},
{0x079a,0x29},
{0x079b,0x29},
{0x079c,0x29},
{0x079d,0x28},
{0x079e,0x25},
{0x079f,0x27},
{0x07a0,0x28},
{0x07a1,0x2a},
{0x07a2,0x28},
{0x07a3,0x2a},
{0x07a4,0x26},

{0x07a5,0x3 }, //C_light                                 
{0x07a6,0x19},                        
{0x07a7,0x1f},                        
{0x07a8,0x21},                        
{0x07a9,0x23},                        
{0x07aa,0x1e},                        
{0x07ab,0x19},                        
{0x07ac,0x7 },                        
{0x07ad,0x16},                        
{0x07ae,0xf },                        
{0x07af,0xa },                        
{0x07b0,0x8 },                        
{0x07b1,0x7 },                        
{0x07b2,0x9 },                        
{0x07b3,0xd },                        
{0x07b4,0x14},                        
{0x07b5,0x7 },                        
{0x07b6,0x3 },                        
{0x07b7,0x2 },                        
{0x07b8,0x1 },                        
{0x07b9,0x1 },                        
{0x07ba,0x1 },                        
{0x07bb,0x2 },                        
{0x07bc,0x5 },                        
{0x07bd,0x4 },                        
{0x07be,0x2 },                        
{0x07bf,0x1 },                        
{0x07c0,0x0 },                        
{0x07c1,0x0 },                        
{0x07c2,0x0 },                        
{0x07c3,0x1 },                        
{0x07c4,0x3 },                        
{0x07c5,0x3 },                        
{0x07c6,0x1 },                        
{0x07c7,0x0 },                        
{0x07c8,0x0 },                        
{0x07c9,0x0 },                        
{0x07ca,0x0 },                        
{0x07cb,0x1 },                        
{0x07cc,0x2 },                        
{0x07cd,0x5 },                        
{0x07ce,0x2 },                        
{0x07cf,0x1 },                        
{0x07d0,0x1 },                        
{0x07d1,0x1 },                        
{0x07d2,0x1 },                        
{0x07d3,0x2 },                        
{0x07d4,0x4 },                        
{0x07d5,0xf },                        
{0x07d6,0xb },                        
{0x07d7,0x8 },                        
{0x07d8,0x6 },                        
{0x07d9,0x6 },                        
{0x07da,0x7 },                        
{0x07db,0xa },                        
{0x07dc,0xc },                        
{0x07dd,0x6 },                        
{0x07de,0x15},                        
{0x07df,0x1b},                        
{0x07e0,0x1c},                        
{0x07e1,0x1c},                        
{0x07e2,0x1a},                        
{0x07e3,0x13},                        
{0x07e4,0xa },                        
{0x07e5,0x24},                        
{0x07e6,0x1a},                        
{0x07e7,0x16},                        
{0x07e8,0x15},                        
{0x07e9,0x16},                        
{0x07ea,0x14},                        
{0x07eb,0x15},                        
{0x07ec,0x16},                        
{0x07ed,0x12},                        
{0x07ee,0x14},                        
{0x07ef,0x16},                        
{0x07f0,0x17},                        
{0x07f1,0x15},                        
{0x07f2,0x12},                        
{0x07f3,0xf },                        
{0x07f4,0xe },                        
{0x07f5,0x10},                        
{0x07f6,0x17},                        
{0x07f7,0x1b},                        
{0x07f8,0x1d},                        
{0x07f9,0x1b},                        
{0x07fa,0x16},                        
{0x07fb,0x12},                        
{0x07fc,0xe },                        
{0x07fd,0x10},                        
{0x07fe,0x18},                        
{0x07ff,0x1e},                        
{0x0800,0x21},                        
{0x0801,0x20},                        
{0x0802,0x1d},                        
{0x0803,0x18},                        
{0x0804,0x14},                        
{0x0805,0xe },                        
{0x0806,0x15},                        
{0x0807,0x1c},                        
{0x0808,0x20},                        
{0x0809,0x21},                        
{0x080a,0x1e},                        
{0x080b,0x19},                        
{0x080c,0x15},                        
{0x080d,0xb },                        
{0x080e,0x12},                        
{0x080f,0x18},                        
{0x0810,0x1b},                        
{0x0811,0x1b},                        
{0x0812,0x18},                        
{0x0813,0x15},                        
{0x0814,0x11},                        
{0x0815,0xd },                        
{0x0816,0x10},                        
{0x0817,0x13},                        
{0x0818,0x15},                        
{0x0819,0x14},                        
{0x081a,0x12},                        
{0x081b,0xf },                        
{0x081c,0xe },                        
{0x081d,0x1a},                        
{0x081e,0x15},                        
{0x081f,0x14},                        
{0x0820,0x14},                        
{0x0821,0x13},                        
{0x0822,0x14},                        
{0x0823,0x15},                        
{0x0824,0x19},                        
{0x0825,0x1d},                        
{0x0826,0x1d},                        
{0x0827,0x1f},                        
{0x0828,0x21},                        
{0x0829,0x22},                        
{0x082a,0x23},                        
{0x082b,0x27},                        
{0x082c,0x2a},                        
{0x082d,0x1a},                        
{0x082e,0x1a},                        
{0x082f,0x1c},                        
{0x0830,0x1f},                        
{0x0831,0x22},                        
{0x0832,0x23},                        
{0x0833,0x22},                        
{0x0834,0x23},                        
{0x0835,0x18},                        
{0x0836,0x1a},                        
{0x0837,0x1c},                        
{0x0838,0x1f},                        
{0x0839,0x21},                        
{0x083a,0x23},                        
{0x083b,0x23},                        
{0x083c,0x1f},                        
{0x083d,0x1d},                        
{0x083e,0x1d},                        
{0x083f,0x1e},                        
{0x0840,0x20},                        
{0x0841,0x21},                        
{0x0842,0x21},                        
{0x0843,0x20},                        
{0x0844,0x1d},                        
{0x0845,0x1e},                        
{0x0846,0x1d},                        
{0x0847,0x1f},                        
{0x0848,0x20},                        
{0x0849,0x20},                        
{0x084a,0x20},                        
{0x084b,0x1e},                        
{0x084c,0x1b},                        
{0x084d,0x1c},                        
{0x084e,0x1c},                        
{0x084f,0x1d},                        
{0x0850,0x1e},                        
{0x0851,0x1f},                        
{0x0852,0x1f},                        
{0x0853,0x1e},                        
{0x0854,0x1a},                        
{0x0855,0x1a},                        
{0x0856,0x1a},                        
{0x0857,0x1b},                        
{0x0858,0x1d},                        
{0x0859,0x1e},                        
{0x085a,0x1f},                        
{0x085b,0x1d},                        
{0x085c,0x1b},                        
{0x085d,0x22},                        
{0x085e,0x1d},                        
{0x085f,0x1d},                        
{0x0860,0x1d},                        
{0x0861,0x1e},                        
{0x0862,0x1f},                        
{0x0863,0x22},                        
{0x0864,0x23},                        

{0x0865,0x0 }, //D_light                    
{0x0866,0x27},                              
{0x0867,0x2f},                              
{0x0868,0x30},                              
{0x0869,0x32},                              
{0x086a,0x2a},                              
{0x086b,0x23},                              
{0x086c,0xa },                              
{0x086d,0x20},                              
{0x086e,0x13},                              
{0x086f,0xb },                              
{0x0870,0x8 },                              
{0x0871,0x8 },                              
{0x0872,0xa },                              
{0x0873,0xf },                              
{0x0874,0x19},                              
{0x0875,0x7 },                              
{0x0876,0x3 },                              
{0x0877,0x2 },                              
{0x0878,0x2 },                              
{0x0879,0x1 },                              
{0x087a,0x1 },                              
{0x087b,0x2 },                              
{0x087c,0x5 },                              
{0x087d,0x4 },                              
{0x087e,0x2 },                              
{0x087f,0x1 },                              
{0x0880,0x0 },                              
{0x0881,0x0 },                              
{0x0882,0x0 },                              
{0x0883,0x1 },                              
{0x0884,0x3 },                              
{0x0885,0x3 },                              
{0x0886,0x1 },                              
{0x0887,0x0 },                              
{0x0888,0x0 },                              
{0x0889,0x0 },                              
{0x088a,0x0 },                              
{0x088b,0x1 },                              
{0x088c,0x2 },                              
{0x088d,0x5 },                              
{0x088e,0x3 },                              
{0x088f,0x2 },                              
{0x0890,0x1 },                              
{0x0891,0x1 },                              
{0x0892,0x1 },                              
{0x0893,0x2 },                              
{0x0894,0x4 },                              
{0x0895,0x13},                              
{0x0896,0xc },                              
{0x0897,0x8 },                              
{0x0898,0x7 },                              
{0x0899,0x7 },                              
{0x089a,0x8 },                              
{0x089b,0xb },                              
{0x089c,0xf },                              
{0x089d,0x7 },                              
{0x089e,0x1d},                              
{0x089f,0x25},                              
{0x08a0,0x26},                              
{0x08a1,0x26},                              
{0x08a2,0x22},                              
{0x08a3,0x18},                              
{0x08a4,0xd },                              
{0x08a5,0x29},                              
{0x08a6,0x1f},                              
{0x08a7,0x1b},                              
{0x08a8,0x1a},                              
{0x08a9,0x1a},                              
{0x08aa,0x19},                              
{0x08ab,0x17},                              
{0x08ac,0x17},                              
{0x08ad,0x1f},                              
{0x08ae,0x21},                              
{0x08af,0x21},                              
{0x08b0,0x1e},                              
{0x08b1,0x1b},                              
{0x08b2,0x18},                              
{0x08b3,0x15},                              
{0x08b4,0x13},                              
{0x08b5,0x1f},                              
{0x08b6,0x22},                              
{0x08b7,0x22},                              
{0x08b8,0x21},                              
{0x08b9,0x1d},                              
{0x08ba,0x19},                              
{0x08bb,0x16},                              
{0x08bc,0x14},                              
{0x08bd,0x19},                              
{0x08be,0x1e},                              
{0x08bf,0x21},                              
{0x08c0,0x21},                              
{0x08c1,0x20},                              
{0x08c2,0x1e},                              
{0x08c3,0x1a},                              
{0x08c4,0x18},                              
{0x08c5,0x13},                              
{0x08c6,0x1b},                              
{0x08c7,0x1e},                              
{0x08c8,0x20},                              
{0x08c9,0x21},                              
{0x08ca,0x1f},                              
{0x08cb,0x1c},                              
{0x08cc,0x1a},                              
{0x08cd,0x15},                              
{0x08ce,0x18},                              
{0x08cf,0x1b},                              
{0x08d0,0x1d},                              
{0x08d1,0x1d},                              
{0x08d2,0x1b},                              
{0x08d3,0x19},                              
{0x08d4,0x18},                              
{0x08d5,0x15},                              
{0x08d6,0x19},                              
{0x08d7,0x1b},                              
{0x08d8,0x1b},                              
{0x08d9,0x1a},                              
{0x08da,0x18},                              
{0x08db,0x17},                              
{0x08dc,0x16},                              
{0x08dd,0x1a},                              
{0x08de,0x17},                              
{0x08df,0x18},                              
{0x08e0,0x18},                              
{0x08e1,0x18},                              
{0x08e2,0x18},                              
{0x08e3,0x18},                              
{0x08e4,0x18},                              
{0x08e5,0x21},                              
{0x08e6,0x20},                              
{0x08e7,0x21},                              
{0x08e8,0x23},                              
{0x08e9,0x26},                              
{0x08ea,0x26},                              
{0x08eb,0x2a},                              
{0x08ec,0x2e},                              
{0x08ed,0x1c},                              
{0x08ee,0x1d},                              
{0x08ef,0x20},                              
{0x08f0,0x23},                              
{0x08f1,0x26},                              
{0x08f2,0x28},                              
{0x08f3,0x26},                              
{0x08f4,0x25},                              
{0x08f5,0x1c},                              
{0x08f6,0x1d},                              
{0x08f7,0x1e},                              
{0x08f8,0x20},                              
{0x08f9,0x23},                              
{0x08fa,0x25},                              
{0x08fb,0x26},                              
{0x08fc,0x23},                              
{0x08fd,0x1e},                              
{0x08fe,0x1e},                              
{0x08ff,0x1f},                              
{0x0900,0x20},                              
{0x0901,0x21},                              
{0x0902,0x22},                              
{0x0903,0x22},                              
{0x0904,0x1f},                              
{0x0905,0x1f},                              
{0x0906,0x1f},                              
{0x0907,0x20},                              
{0x0908,0x20},                              
{0x0909,0x20},                              
{0x090a,0x21},                              
{0x090b,0x21},                              
{0x090c,0x1d},                              
{0x090d,0x1f},                              
{0x090e,0x1f},                              
{0x090f,0x1f},                              
{0x0910,0x20},                              
{0x0911,0x21},                              
{0x0912,0x21},                              
{0x0913,0x20},                              
{0x0914,0x1e},                              
{0x0915,0x1d},                              
{0x0916,0x1e},                              
{0x0917,0x1f},                              
{0x0918,0x20},                              
{0x0919,0x22},                              
{0x091a,0x23},                              
{0x091b,0x22},                              
{0x091c,0x1f},                              
{0x091d,0x22},                              
{0x091e,0x1e},                              
{0x091f,0x1f},                              
{0x0920,0x20},                              
{0x0921,0x22},                              
{0x0922,0x22},                              
{0x0923,0x23},                              
{0x0924,0x25},                              

{0xfffe,0x30},
{0x03c2,0x18}, //min_q
{0x03c3,0x40}, //max_q
{0x03c4,0x07}, //lenc_ctrl
{0x03c6,0x01},
{0x03c7,0x00}, //autoG_max_gain
{0x03c8,0x00},
{0x03c9,0x40}, //autoG_min_gain

//BLC      }
{0xfffe,0x30},
{0x0013,0x00},
{0x0014,0x00},
{0x071b,0x00},

//AWB      }
{0xfffe,0x14},
{0x0248,0x01}, //AWB_mode
{0x0249,0x01}, //AWB_fleximap_en
{0x027a,0x00},
{0x027b,0x10}, //min_num
{0x027c,0x0f},
{0x027d,0xff}, //max_awb_gain
{0x027e,0x04}, //awb_step
{0x027f,0x80}, //max_step_value

{0x02b6,0x06},
{0x02b7,0x00}, //B_temp
{0x02ba,0x04},
{0x02bb,0x00}, //G_temp
{0x02be,0x04},
{0x02bf,0x00}, //R_temp

{0x024a,0x02}, //awb_move_en
{0x024e,0x01},
{0x024f,0x00}, //D65:B_offset
{0x0252,0x01},
{0x0253,0x00}, //D65:R_offset
{0x0256,0x01},
{0x0257,0x00}, //CWF:B_offset
{0x025a,0x01},
{0x025b,0x00}, //CWF:R_offset
{0x025e,0x01},
{0x025f,0x00}, //A:B_offset
{0x0262,0x01},
{0x0263,0x00}, //A:R_offset
{0x0264,0x00},
{0x0265,0x38}, //awb_color0
{0x0266,0x00},
{0x0267,0x61}, //awb_color1
{0x0268,0x00},
{0x0269,0xd0}, //awb_color2
{0x026a,0x88}, //awb_shift_R
{0x026b,0x80}, //awb_shift_B

{0xfffe,0x30},
{0x0708,0x02},
{0x0709,0xa0}, //pixel_max_value
{0x070a,0x00},
{0x070b,0x10}, //pixel_min_value

{0xfffe,0x30},
{0x0730,0x9a},
{0x0731,0xbe},
{0x0732,0x30},
{0x0733,0x40},
{0x0734,0x90},
{0x0735,0xaa},
{0x0736,0x3e},
{0x0737,0x5e},
{0x0738,0x51},
{0x0739,0x6e},
{0x073a,0x4a},
{0x073b,0x66},
{0x073c,0x60},
{0x073d,0x7a},
{0x073e,0x5a},
{0x073f,0x73},
{0x0740,0x50},
{0x0741,0x62},
{0x0742,0x5c},
{0x0743,0x80},
{0x0744,0x77},
{0x0745,0x92},
{0x0746,0x5d},
{0x0747,0x6f},
{0x0748,0x44},
{0x0749,0x55},
{0x074a,0x49},
{0x074b,0x7e},
{0x074c,0x64},
{0x074d,0x91},
{0x074e,0x4b},
{0x074f,0x60},
{0x0750,0x00},
{0x0751,0x00},
{0x0752,0x00},
{0x0753,0x00},
{0x0754,0x00},
{0x0755,0x00},
{0x0756,0x00},
{0x0757,0x00},
{0x0758,0x00},
{0x0759,0x00},
{0x075a,0x00},
{0x075b,0x00},
{0x075c,0x00},
{0x075d,0x00},
{0x075e,0x00},
{0x075f,0x00},
{0x0760,0x00},
{0x0761,0x00},
{0x0762,0x00},
{0x0763,0x00},
{0x0764,0x00},
{0x0765,0x00},
{0x0766,0x00},
{0x0767,0x00},
{0x0768,0x00},
{0x0769,0x00},
{0x076a,0x00},
{0x076b,0x00},
{0x076c,0x00},
{0x076d,0x00},
{0x076e,0x00},
{0x076f,0x00},
{0x0770,0x22},
{0x0771,0x21},
{0x0772,0x11},
{0x0773,0x11},
{0x0774,0x00},
{0x0775,0x00},
{0x0776,0x00},
{0x0777,0x00},

//RAW Gamma}
{0xfffe,0x30},
{0x0901,0x04},
{0x0902,0x08},
{0x0903,0x10},
{0x0904,0x20},
{0x0905,0x28},
{0x0906,0x30},
{0x0907,0x38},
{0x0908,0x40},
{0x0909,0x48},
{0x090a,0x50},
{0x090b,0x60},
{0x090c,0x70},
{0x090d,0x90},
{0x090e,0xb0},
{0x090f,0xd0},
{0x0910,0x20},

//RGB Gamma}
{0xfffe,0x30},
{0x1400,0x00},
{0x1401,0x03},
{0x1402,0x06},
{0x1403,0x09},
{0x1404,0x0c},
{0x1405,0x0f},
{0x1406,0x12},
{0x1407,0x15},
{0x1408,0x18},
{0x1409,0x1b},
{0x140a,0x1f},
{0x140b,0x22},
{0x140c,0x25},
{0x140d,0x28},
{0x140e,0x2c},
{0x140f,0x30},
{0x1410,0x33},
{0x1411,0x37},
{0x1412,0x3b},
{0x1413,0x3f},
{0x1414,0x43},
{0x1415,0x47},
{0x1416,0x4b},
{0x1417,0x4f},
{0x1418,0x52},
{0x1419,0x56},
{0x141a,0x5a},
{0x141b,0x5e},
{0x141c,0x61},
{0x141d,0x65},
{0x141e,0x68},
{0x141f,0x6c},
{0x1420,0x70},
{0x1421,0x77},
{0x1422,0x7d},
{0x1423,0x84},
{0x1424,0x8b},
{0x1425,0x91},
{0x1426,0x97},
{0x1427,0x9c},
{0x1428,0xa1},
{0x1429,0xa5},
{0x142a,0xa9},
{0x142b,0xad},
{0x142c,0xb0},
{0x142d,0xb4},
{0x142e,0xb6},
{0x142f,0xb9},
{0x1430,0xbc},
{0x1431,0xc1},
{0x1432,0xc5},
{0x1433,0xca},
{0x1434,0xce},
{0x1435,0xd2},
{0x1436,0xd6},
{0x1437,0xda},
{0x1438,0xde},
{0x1439,0xe2},
{0x143a,0xe6},
{0x143b,0xea},
{0x143c,0xee},
{0x143d,0xf2},
{0x143e,0xf6},
{0x143f,0xfb},
{0x1440,0xff},

{0x1450,0xff},
{0x1451,0x03},
{0x1452,0x50},
{0x1453,0x30},

//CMX      
{0xfffe,0x30},
{0x1200,0x01},	
{0x1201,0x66},
{0x1202,0x00},	
{0x1203,0x3C},
{0x1204,0x00},	
{0x1205,0x4F},
{0x1206,0x01},	
{0x1207,0xB5},
{0x1208,0x00},	
{0x1209,0x6F},
{0x120A,0x1},	
{0x120B,0xC5},
{0x120C,0x3},	
{0x120D,0xA3},
{0x120E,0x0},	
{0x120F,0x1B},
{0x1210,0x0},	
{0x1211,0x5},	
{0x1212,0x1},	
{0x1213,0xF1},
{0x1214,0x1},	
{0x1215,0x35},
{0x1216,0x1},	
{0x1217,0x11},
{0x1218,0x3},	
{0x1219,0xA9},
{0x121A,0x0},	
{0x121B,0x21},
{0x121C,0x0},	
{0x121D,0x8A},
{0x121E,0x3},	
{0x121F,0x29},
{0x1220,0x0},	
{0x1221,0xE4},
{0x1222,0x3},	
{0x1223,0x61},
{0x122e,0x8},	
{0x122F,0x10},
{0x1230,0x8},	
{0x1228,0x0},	
{0x1229,0xFD},
{0x122A,0x0},	
{0x122B,0x2},	
{0x122C,0x0},	
{0x122D,0x5},	
{0x1231,0x02},

{0x1232,0x48},
{0x1233,0x30},
{0x1234,0x07},
{0x1235,0x0f},

//advance_raw_dns
{0xfffe,0x30},
{0x2000,0x0a}, //s0_sigma_0
{0x2001,0x10},
{0x2002,0x18},
{0x2003,0x1a},
{0x2004,0x20},
{0x2005,0x28},

{0x2006,0x18}, //s0_Gsl_0
{0x2007,0x12},
{0x2008,0x10},
{0x2009,0x06},
{0x200a,0x04},
{0x200b,0x02},

{0x200c,0x10}, //s0_RBsl_0
{0x200d,0x0e},
{0x200e,0x0a},
{0x200f,0x06},
{0x2010,0x04},
{0x2011,0x02},

{0x2012,0x28}, //s0_ps00
{0x2013,0x2a},
{0x2014,0x2e},
{0x2015,0x20},
{0x2016,0x24},
{0x2017,0x28},

{0x2018,0x20}, //s0_ps10
{0x2019,0x24},
{0x201a,0x28},
{0x201b,0x2c},
{0x201c,0x30},
{0x201d,0x34},

{0x201e,0x2c}, //s0_ps20
{0x201f,0x28},
{0x2020,0x30},
{0x2021,0x20},
{0x2022,0x30},
{0x2023,0x34},

{0x2024,0x10}, //s0_ps30
{0x2025,0x2c},
{0x2026,0x30},
{0x2027,0x24},
{0x2028,0x30},
{0x2029,0x34},

{0x202a,0x08}, //s0_pl0
{0x202b,0x08},
{0x202c,0x08},
{0x202d,0x08},
{0x202e,0x08},
{0x202f,0x08}, //s0_pl05

{0x2030,0x08}, //s0_pl10
{0x2031,0x08},
{0x2032,0x08},
{0x2033,0x08},
{0x2034,0x08},
{0x2035,0x08}, //s0_pl15

{0x2036,0x08}, //s0_pl20
{0x2037,0x08},
{0x2038,0x08},
{0x2039,0x08},
{0x203a,0x08},
{0x203b,0x08}, //s0_pl25

{0x203c,0x08}, //s0_pl30
{0x203d,0x08},
{0x203e,0x08},
{0x203f,0x08},
{0x2040,0x08},
{0x2041,0x08}, //s0_pl35

{0x2044,0x10}, //thre_y

//UV_dns   }
{0xfffe,0x30},
{0x2100,0x08}, //l_noise_list0
{0x2101,0x08},
{0x2102,0x08},
{0x2103,0x08},
{0x2104,0x08},
{0x2105,0x08}, //l_noise_list5
{0x2106,0x5f}, //uv_dns_ctrl
{0x2107,0x08}, //noise_man_value

//CIP      }
{0xfffe,0x30},
{0x0f00,0x48}, //bit[7:4] noise_y_slp bit[3:0] Lsharp
{0x0f02,0x00}, //noise_list0
{0x0f03,0x00},
{0x0f04,0x00},
{0x0f05,0x00},
{0x0f06,0x00},
{0x0f07,0x00},
{0x0f08,0x00},
{0x0f09,0x00},
{0x0f0a,0x01}, //min_shp
{0x0f0b,0x03}, //max_shp
{0x0f0c,0x03}, //min_detail
{0x0f0d,0x03}, //max_detail
{0x0f0e,0x02}, //min_shp_gain
{0x0f0f,0x0c}, //max_shp_gain
{0x0f10,0x20},

//WDR      }
{0xfffe,0x30},
{0x2b04,0x08}, //sat_factor
{0x2b16,0x04}, //wdr_ctrl

{0xfffe,0x14},
{0x09ab,0x02}, //Gmax
{0x09ac,0x08},
{0x09ad,0xb4}, //map_rang
{0x09ae,0x41}, //PDF64_num_thd
{0x09af,0xff}, //gray_high
{0x09b2,0x02},
{0x09b3,0x00}, //gain_thd
{0x09b4,0x10}, //ext_ratio
{0x09b5,0x14}, //ext_ratio_max
{0x09b6,0x00}, //weak_adj_on

{0xfffe,0x30},
{0x2b9a,0x00},
{0x2b9b,0x00}, //gain_list0
{0x2b9c,0x10},
{0x2b9d,0x00},
{0x2b9e,0x20},
{0x2b9f,0x00},
{0x2ba0,0x40},
{0x2ba1,0x00},
{0x2ba2,0x70},
{0x2ba3,0x00},
{0x2ba4,0xa0},
{0x2ba5,0x00},
{0x2ba6,0xd0},
{0x2ba7,0x00},
{0x2ba8,0x00},
{0x2ba9,0x01},
{0x2bac,0x18}, //thd0
{0x2bad,0x18},
{0x2bae,0x1a},
{0x2baf,0x1a},
{0x2bb0,0x1b},
{0x2bb1,0x1b},
{0x2bb2,0x1d},
{0x2bb3,0x20},
{0x2bb4,0x7f}, //thd0_max
{0x2bb5,0x7f},
{0x2bb6,0x7f},
{0x2bb7,0x7f},
{0x2bb8,0x7f},
{0x2bb9,0x7f},
{0x2bba,0x7f},
{0x2bbb,0x7f},
{0x2bbc,0x24}, //enhance_ratio0
{0x2bbd,0x24},
{0x2bbe,0x20},
{0x2bbf,0x12},
{0x2bc0,0x0e},
{0x2bc1,0x0e},
{0x2bc2,0x0c},
{0x2bc3,0x0c},

//Auto_Sat }
{0xfffe,0x14},
{0x026c,0x00}, //auto_sat_enable
{0x026d,0x20},
{0x026e,0x50}, //sat_U0
{0x026f,0x40},
{0x0270,0x40},
{0x0271,0x30},
{0x0272,0x30},
{0x0273,0x30},
{0x0274,0x50}, //sat_V0
{0x0275,0x3a},
{0x0276,0x3a},
{0x0277,0x2a},
{0x0278,0x2a},
{0x0279,0x2a},

//TOP      }
{0xfffe,0x14},
{0x002b,0x01}, //AE_enable
{0x002c,0x01}, //awb_enable
{0x002f,0x01}, //wdr_enable
{0x0030,0x01}, //lenc_enable
{0x0620,0x01},
{0x0621,0x01},

{0xfffe,0x30},
{0x0000,0x67},
{0x0001,0x82},
{0x0002,0x96},
{0x0003,0x31},
{0x0004,0x10},
{0x2300,0x0a},

{0x0019,0x08},
{0x071c,0x0a},
{0x1700,0x09},
{0x1701,0x38},
{0x1702,0x30},
{0x1704,0x23}, //contrast_ygain
{0x1707,0x00}, //ybright

//IQ_end
};


const  regval_list XC7022_720P_colorbar_regs[] = {
	{0xfffd,0x80},
	{0xfffe,0x50},
	{0x001c,0xff},
	{0x001d,0xff},
	{0x001e,0xff},
	{0x001f,0xff}, //clk_en
	{0x0018,0x00},
	{0x0019,0x00},
	{0x001a,0x00},
	{0x001b,0x00}, //reset

	{0x0030,0xa4},
	{0x0031,0x98},
	{0x0032,0x33},
	{0x0033,0x31},

	{0x0020,0x03},
	{0x0021,0x0d},
	{0x0022,0x01},
	{0x0023,0x86},
	{0x0024,0x01},
	{0x0025,0x04},
	{0x0026,0x02},
	{0x0027,0x06},
	{0x0028,0x01},
	{0x0029,0x00},
	{0x002a,0x02},
	{0x002b,0x05},
	{0x002e,0x02}, //PLL

	{0xfffe,0x50},
	{0x0050,0x13},
	{0x0054,0x13},
	{0x0058,0x12}, //GPIO_Ctr

	{0xfffe,0x50},
	{0x00bc,0x19},
	{0x0090,0x3a},

	{0x0200,0x0f}, //mipi_rx1_pad
	{0x0201,0x00},
	{0x0202,0x80},
	{0x0203,0x00},

	{0xfffe,0x26},
	{0x8000,0x29}, //colorbar,0x2d, no roll colorbar
	{0x8001,0x00},
	{0x8002,0x05},
	{0x8003,0xD0},
	{0x8004,0x02},
	{0x8005,0x03},
	{0x8006,0x05},
	{0x8007,0x4d},
	{0x8008,0x1b},
	{0x8009,0x04},

	{0xfffe,0x26},
	{0x8010,0x04}, //before_isp_crop
	{0x8012,0x00},
	{0x8013,0x05},
	{0x8014,0xD0},
	{0x8015,0x02},
	{0x8016,0x00},
	{0x8017,0x00},
	{0x8018,0x00},
	{0x8019,0x00},

	{0xfffe,0x30},
	{0x0000,0x01}, //isp0_set
	{0x0001,0x00},
	{0x0002,0x10},
	{0x0003,0x20},
	{0x0004,0x10},
	{0x0019,0x09},
	{0x0050,0x20}, //dummy_line

	{0x005e,0xFF},
	{0x005f,0x04},
	{0x0060,0xCF},
	{0x0061,0x02},
	{0x0064,0x00},
	{0x0065,0x05},
	{0x0066,0xD0},
	{0x0067,0x02},

	{0x0006,0x05},
	{0x0007,0x00},
	{0x0008,0x02},
	{0x0009,0xD0},
	{0x000a,0x05},
	{0x000b,0x00},
	{0x000c,0x02},
	{0x000d,0xD0},

	{0x001e,0x05}, //isp_scale
	{0x001f,0x00},
	{0x0020,0x02},
	{0x0021,0xD0},

	{0x007e,0x05},
	{0x007f,0x00},
	{0x0080,0x02},
	{0x0081,0xD0},
	{0x0082,0x00},

	{0xfffe,0x30},
	{0x1a00,0x00}, //isp_crop
	{0x1a01,0x00},
	{0x1a02,0x00},
	{0x1a03,0x00},
	{0x1a04,0x05},
	{0x1a05,0x00},
	{0x1a06,0x02},
	{0x1a07,0xD0},
	{0x1a08,0x00},

	{0xfffe,0x26},
	{0x0000,0x20}, //mipi_rx_lane
	{0x0009,0xc4}, //mipi_rx_set

	{0xfffe,0x26},
	{0x2019,0x05}, //mipi_tx
	{0x201a,0x00},
	{0x201b,0x02},
	{0x201c,0xD0},
	{0x201d,0x00},
	{0x201e,0x00},
	{0x201f,0x00},
	{0x2020,0x00},

	{0x2015,0x80},
	{0x2017,0x1e},
	{0x2018,0x00},
	{0x2023,0x01}, //mipi_tx_set

	{0xfffe,0x2c},
	{0x0000,0x00}, //stitch
	{0x0008,0x10},

	{0x0044,0x08}, //fifo
	{0x0045,0x04},
	{0x0048,0x09},
	{0x0049,0xF0},

	{0xfffe,0x2e},
	{0x0000,0x42}, //retiming
	{0x0001,0xee},
	{0x0003,0x00},
	{0x0004,0xa0},

	{0xfffe,0x50},
	{0x0226,0x02}, //rx2_off
};


static int32_t xc7022_check_id(i2c_dev_t *i2c)
{
    int ret = 0;
    uint8_t data = 0;

	printf("check xc7022 id: \n");

    ret = iic_write_array(i2c, (struct regval_list *)XC7022_w_page_regs, ARRAY_SIZE(XC7022_w_page_regs));
    if (ret < 0) {
        printf("sensor write failed \n");
		return -1;
	}

    ret = iic_read(i2c, XC7022_REG_CHIPID_H, &data);
    printf("H %02x \n",data);
    if (ret < 0 || data != 0x71)
        return -1;
    ret = iic_read(i2c, XC7022_REG_CHIPID_L, &data);
    printf("L %02x \n",data);
   	if (ret < 0 || data != 0x60)
        return -1;

    return ret;
}


int xc7022_hw_reset(st_7022_reset_t *reset_io)
{
	if (reset_io == NULL) {
		printf("%s:%d input para err.\n", __func__, __LINE__);
		return -1;
	}

	if (reset_io->io_type == GPIO_7022) {
		hal_gpio_init(&reset_io->gpio);
		//hal_gpio_output_low(&reset_io->gpio);
		//aos_msleep(500);
		hal_gpio_output_high(&reset_io->gpio);
		aos_msleep(25);
	} else if (reset_io->io_type == AOGPIO_7022) {
		//hal_aogpio_output_low(reset_io->ao_gpio_id);
		//aos_msleep(500);
		hal_aogpio_output_high(reset_io->ao_gpio_id);
		aos_msleep(25);
	} else {
		printf("%s:%d no reset io\r\n", __func__, __LINE__);
	}

    return 0;
}

int xc7022_init(i2c_dev_t *i2c, uint32_t dev_addr, st_7022_reset_t *reset_io)
{
	xc7022_hw_reset(reset_io);

	int ret = 0;
	memcpy(&i2c_xc7022, i2c, sizeof(i2c_dev_t));
    i2c_xc7022.config.dev_addr = dev_addr;
    ret = xc7022_check_id(&i2c_xc7022);
    if (ret < 0) {
        printf("xc7022 check id fail\n");
        return -1;
    }

	//xc7022_config(in, out);
	printf("xc7022 init success\n");
    return ret;
}

int xc7022_finalize()
{
	return 0;
}

int xc7022_cfg_bypass(bool setl)
{
	int ret = 0;
	if(setl == 1)
	{	
		ret = iic_write_array(&i2c_xc7022, (struct regval_list *)XC7022_bypass_on, ARRAY_SIZE(XC7022_bypass_on));
	    if (ret < 0) {
	        return -1;
	    }
	}
	else
	{
		ret = iic_write_array(&i2c_xc7022, (struct regval_list *)XC7022_bypass_off, ARRAY_SIZE(XC7022_bypass_off));
	    if (ret < 0) {
	        return -1;
	    }
	}
#if 1
    ret = iic_read_array(&i2c_xc7022, (struct regval_list *)XC7022_bypass_on, ARRAY_SIZE(XC7022_bypass_on));
    if(ret < 0)
        printf("read register failed!\n");
#endif

}
	    

int xc7022_cfg_format(xc7022_cfg_t *xc7022_cfg)
{
	int ret = 0;
	imageFormat_t *cfg;

	if (xc7022_cfg == NULL) {
		printf("%s:%d input para err.\n", __func__, __LINE__);
		return -1;
	}

	cfg = &xc7022_cfg->cfg;
	if(R_1080P == cfg->res && YUV422 == cfg->format) {
		printf("size_1920x1080 \n");
		//ret = iic_write_array(i2c, (struct regval_list *)XC7022_1080_Init_IQ_regs, ARRAY_SIZE(XC7022_1080_Init_IQ_regs));
		ret = iic_write_array(&i2c_xc7022, (struct regval_list *)XC7022_1080_2_Init_IQ_regs, ARRAY_SIZE(XC7022_1080_2_Init_IQ_regs));
	} else if(R_720P == cfg->res && YUV422 == cfg->format) {
		printf("size_1280x720 \n");
		//ret = iic_write_array(&i2c_xc7022, (struct regval_list *)XC7022_Init_IQ_regs, ARRAY_SIZE(XC7022_Init_IQ_regs));
		//ret = iic_write_array(&i2c_xc7022, (struct regval_list *)XC7022_2_Init_IQ_regs, ARRAY_SIZE(XC7022_2_Init_IQ_regs));
		//ret = iic_write_array(&i2c_xc7022, (struct regval_list *)XC7022_v1_Init_IQ_regs, ARRAY_SIZE(XC7022_v1_Init_IQ_regs));

		if (xc7022_cfg->color_bar == 0xAA)  {
			printf("%s:%d color bar mode.\n", __func__, __LINE__);
			ret = iic_write_array(&i2c_xc7022, (struct regval_list *)XC7022_720P_colorbar_regs, ARRAY_SIZE(XC7022_720P_colorbar_regs));
		} else {
			ret = iic_write_array(&i2c_xc7022, (struct regval_list *)XC7022_v3_Init_IQ_regs, ARRAY_SIZE(XC7022_v3_Init_IQ_regs));
		}
	} else
	{
		printf("not support\n");
	}
	
    if (ret < 0) {
		return -1;
	}

#if 0
    ret = iic_read_array(&i2c_xc7022, (struct regval_list *)XC7022_Init_IQ_regs, ARRAY_SIZE(XC7022_Init_IQ_regs));
    if(ret < 0)
        printf("read register failed!\n");
#endif
#if 0
    ret = iic_write_array(&i2c_xc7022, (struct regval_list *)XC7022_w_page_regs, ARRAY_SIZE(XC7022_w_page_regs));
    if (ret < 0) {
        return -1;
    }

    ret = iic_read_array(&i2c_xc7022, (struct regval_list *)XC7022_read1_regs, ARRAY_SIZE(XC7022_read1_regs));
    if(ret < 0)
        printf("read register failed!\n");

    ret = iic_write_array(&i2c_xc7022, (struct regval_list *)XC7022_w_page1_regs, ARRAY_SIZE(XC7022_w_page1_regs));
    if (ret < 0) {
        return -1;
    }

    ret = iic_read_array(&i2c_xc7022, (struct regval_list *)XC7022_read2_regs, ARRAY_SIZE(XC7022_read2_regs));
    if(ret < 0)
        printf("read register failed!\n");

    //debug
    ret = iic_write_array(&i2c_xc7022, (struct regval_list *)XC7022_debug_page1, ARRAY_SIZE(XC7022_debug_page1));
    if (ret < 0) {
        return -1;
    }

    printf("read debug 1: \n");
    ret = iic_read_array(&i2c_xc7022, (struct regval_list *)XC7022_debug_page1_reader, ARRAY_SIZE(XC7022_debug_page1_reader));
    if(ret < 0)
        printf("read register failed!\n");

    ret = iic_write_array(&i2c_xc7022, (struct regval_list *)XC7022_debug_page2, ARRAY_SIZE(XC7022_debug_page2));
    if (ret < 0) {
        return -1;
    }

    printf("read debug 2: \n");
    ret = iic_read_array(&i2c_xc7022, (struct regval_list *)XC7022_debug_page2_reader, ARRAY_SIZE(XC7022_debug_page2_reader));
    if(ret < 0)
        printf("read register failed!\n");

    ret = iic_write_array(&i2c_xc7022, (struct regval_list *)XC7022_debug_page3, ARRAY_SIZE(XC7022_debug_page3));
    if (ret < 0) {
        return -1;
    }

    printf("read debug 3: \n");
    ret = iic_read_array(&i2c_xc7022, (struct regval_list *)XC7022_debug_page3_reader, ARRAY_SIZE(XC7022_debug_page3_reader));
    if(ret < 0)
    {
        printf("read register failed!\n");
    }
#endif
        
    return ret;
}  


int xc7022_debug_register(void)
{
    int ret = 0;

    ret = iic_write_array(&i2c_xc7022, (struct regval_list *)XC7022_debug_page1, ARRAY_SIZE(XC7022_debug_page1));
    if (ret < 0) {
        return -1;
    }

    printf("read debug 1: \n");
    ret = iic_read_array(&i2c_xc7022, (struct regval_list *)XC7022_debug_page1_reader, ARRAY_SIZE(XC7022_debug_page1_reader));
    if(ret < 0)
        printf("read register failed!\n");

    ret = iic_write_array(&i2c_xc7022, (struct regval_list *)XC7022_debug_page2, ARRAY_SIZE(XC7022_debug_page2));
    if (ret < 0) {
        return -1;
    }

    printf("read debug 2: \n");
    ret = iic_read_array(&i2c_xc7022, (struct regval_list *)XC7022_debug_page2_reader, ARRAY_SIZE(XC7022_debug_page2_reader));
    if(ret < 0)
        printf("read register failed!\n");

    ret = iic_write_array(&i2c_xc7022, (struct regval_list *)XC7022_debug_page3, ARRAY_SIZE(XC7022_debug_page3));
    if (ret < 0) {
        return -1;
    }

    printf("read debug 3: \n");
    ret = iic_read_array(&i2c_xc7022, (struct regval_list *)XC7022_debug_page3_reader, ARRAY_SIZE(XC7022_debug_page3_reader));
    if(ret < 0)
        printf("read register failed!\n");

    return ret;
}



